Skip to content

danielsto/data-police-shootings-augmented

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data-police-shootings-augmented

Augmented Washington Post's Fatal Force dataset using original dataset and United States census data from 2017.

I just want the data

[ Download the dataset ]

Data files explained

  • data/fatal-police-shootings-data.csv: data from The Washington Post repository.
  • data/statepop.csv: demographic data by state sourced from the U.S. Census.
  • data/police-shootings-data-census.csv: resulting dataset as a combination of the previous ones.

Install dependencies

pip3 install -r requirements.txt

Run

Makefile (only Python 3+):

To generate the dataset using local version of fatal-police-shootings-data.csv included in this repository (April 2021)

make run

To generate the dataset using last available version of fatal-police-shootings-data.csv from Washington Post's original repository

make current

Without Makefile

To generate the dataset using local version of fatal-police-shootings-data.csv included in this repository (April 2021)

python build_dataset.py

To generate the dataset using last available version of fatal-police-shootings-data.csv from Washington Post's original repository

python build_dataset.py current

Data sources

[1] The Washington Post
[2] U.S. Census Bureau

Related

[3] FiveThirtyEight

About

Augmented Washington Post's Fatal Force dataset

Resources

License

Stars

Watchers

Forks

Releases

No releases published