Data and visualization of all capital punishments in the U.S., 1608-present
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
ColumnMap.py
Execution.py
LICENSE
Mapping.py
README.md
main.py

README.md

U.S. death penalty historical data

Convert the Espy file into clean CSV or JSON documents

##Data Data for U.S. executions from 1608 through 2002 is provided by the "ESPY file", which is freely available for download from the Interuniversity Consortium for Political and Social Research. The license for this data prevents us form distributing the file through the repo, you will have to download this file manually and place it in the repo's root directory. The file in the uncompressed folder from ICPSR is named 08451-0001-Data.txt.

##Running After downloading the data, place the .txt file in the root directory and run the script:

python main.py

The script has several options:

  • --csv: to retrieve a CSV file of the processed data

  • --json: to retrieve a JSON file with the processed data

  • --states: reduce list to executions carried out by the state. (Excludes federal and military executions)

  • --summary: instead of a list of individual executions, return aggregate data by state