Skip to content

foskyblue/usa_criminal_record_ojjdp

Repository files navigation

Table of Contents

  1. Installation
  2. Project Motivation
  3. File Descriptions
  4. Results
  5. Licensing, Authors, and Acknowledgements

Installation

To run this project, you can clone this repository onto your local machine and follow the instructions below to run a local server.

The version of python used is python 3.*.

Other libraries needed to successfully run this project includes:

  1. Pandas version 1.1.3.
  2. Numpy version 1.19.2.
  3. Matplotlib version 3.2.2.
  4. Plotly 4.14.3
  5. Flask 1.1.2

To run the code locally:

  1. Clone the repo to your local machine
  2. Navigate to the root folder and run the command $ python us_criminal_record.py

Project Motivation

I've read several news posts on different social media and new channels in the United States where people say 'black people commits the most crime in the United States'. I thought it would be best if data be the judge of that.

I'm interested in finding the crime rate for all races in the United States from 1980 to 2019 using a data-centric approach. I believe that this will have me better informed than these posts by random users.

File Descriptions

This is a webapp developed in python and flask. The files includes all required heroku configuration files and a jupyter notebook file.

Results

The main findings of the code can be found at the post available in the jupyter notebook file, usa_doj_criminal_data.ipynb. Also, you can view data sets for each year using a designed data dashboard here.

Licensing, Authors, Acknowledgements

All credit goes to the Office of Justice Juvenile and Deliquency Prevention (OJJDP) for the data. You can find the Licensing for the data and other descriptive information at the OJJDP official website here.