Skip to content

jellis18/police_shooting_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Police Shooting Data With Census and Crime Data Covariates

The goal of this repository is to combine as much information at the county level to accompany police shooting databases as to facilitate predictions and data visualizations of police shooting data. The shooting data is from the Washington Post and the Mapping Police Violence database. The covariate data comes from various US Census and the FBI Uniform Crime Reporting database. For more details on the data collection, cleaning, and processing see the Jupyter Notebook here.

Installation

  1. Clone the repository
  2. tar xzf data.tgz
  3. pip install -r requirements.txt
  4. Open Jupyter notebook (i.e., jupyter notebook combine_data.ipynb)
  5. Run notebook and all data will be created on the fly.

Note: Some of the police shooting data is not geocoded. If you wish to perform this geocoding (otherwise the geocoded data is stored in derived_datasets) then you will need to have the googlemaps python package installed along with a valid Google Maps API (follow the instructions in the link). Lastly, note that you will have to install googlemaps manually as it is not included in the requirements.txt file.

Data Sets

The datasets to be created are as follows (click link to download):

  1. Census data with various county-level features (2014)
  2. Police Shooting data from 2013-2016
  3. FBI county-level crime data (2014)
  4. FBI county-level crime data summed by county and crime(2014)
  5. Combined county-level data with census, police shooting, and crime data
  6. Police Shooting data with county-level crime and census covariates

Where possible intermediate datasets are downloaded directly from source. Otherwise they are stored in the datasets directory.

Furthermore, all derived datasets will be stored in derived_datasets.

Comments, Questions, Issues

If you have any questions or comments or want to suggest changes open a new issue and let me know!

About

Script and repository for police shooting data with census and crime covariates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors