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.

Downloads

Download all of the following files.

Usage

Begin by adding the above JAR file to your classpath. This library has 1 function you can use.
import corgis.slavery.SlaveryLibrary;
import corgis.slavery.domain.*;
import java.util.ArrayList;

public class ExampleClass {
    public static void main(String[] args) {
        // Get access to the library
        SlaveryLibrary slaveryLibrary = new SlaveryLibrary();
        // Access data inside the library
        ArrayList<TransactionRecord> list_of_transaction_record = slaveryLibrary.getTransaction(false);
    }
}
Additionally, some of the functions can optionally return Big Data using the last argument (setting it to true). If you use this Big Data, it may be much slower. Wait until you are sure your code is correct before using these examples.
import corgis.slavery.SlaveryLibrary;
import corgis.slavery.domain.*;
import java.util.ArrayList;

public class ExampleClass {
    public static void main(String[] args) {
        // Get access to the library
        SlaveryLibrary slaveryLibrary = new SlaveryLibrary();
        // Access data inside the library
        ArrayList<TransactionRecord> list_of_transaction_record = slaveryLibrary.getTransaction(true);
    }
}

Documentation

We provide full JavaDoc for this library. Alternatively, you may refer to the below:

 slaveryLibrary.getTransaction(test)

Returns a list of the transactions in the database.