Overview

This dataset has financial records of New Orleans slave sales, 1856-1861. There are almost 16,000 sales recorded in this dataset.

Calomiris, Charles W., and Jonathan Pritchett. 2016. "Betting on Secession: Quantifying Political Events Surrounding Slavery and the Civil War." American Economic Review, 106(1): 1-23.

Explore Structure




Index Type Example Value
0 dict { }
... ... ...
Key Type Example Value Comment
"Prices Listed" int 1
"Price" float 650.0 Missing values were replaced using the mean of the rest of the category"
"Payment Method" str "Cash"
"Discount Rate" float 0.00602698 Missing values were replaced using the mean of the rest of the category
"Predicted Interest Rate" float 0.07477
Key Type Example Value Comment
"Buyer" dict { }
"Transaction" dict { }
"Slave" dict { }
"Seller" dict { }
Key Type Example Value Comment
"Origin" str "Unknown, AL"
"County of Origin" str "Unknown"
"Full Name" str "Benjamin Screws"
"State of Origin" str "AL"
Key Type Example Value Comment
"Gender" str "M"
"Age" float 40.0 Ages that are represented as -1 stand for ages that were not available in the data that was collected.
"Skin Color" str "Unknown"
"Name" str "Shadrack"
Key Type Example Value Comment
"Origin" str "Unknown, Unknown"
"County of Origin" str "Unknown"
"Full Name" str "Maria Hopson"
"State of Origin" str "Unknown"
Key Type Example Value Comment
"Date" str "10/6/1856"
"Number of Total Slaves Purchased" int 1
"Number of Adult Slaves" int 1
"Number of Child Slaves" int 0
"Sale Details" dict { }

Downloads

Download all of the following files.

Usage

This library has 1 function you can use.
import slavery
list_of_transaction_record = slavery.get_transaction()
Additionally, some of the functions can return a sample of the Big Data using an extra argument. If you use this sampled Big Data, it may be much faster. When you are sure your code is correct, you can remove the argument to use the full dataset.
import slavery
# These may be slow!
list_of_transaction_record = slavery.get_transaction(test=True)

Documentation

 slavery.get_transaction(test=False)

Returns a list of the transactions in the database.