Skip to content

kvn219/dv-in-nyc

Repository files navigation

Getting data behind intimate partner violence in NYC

While violent crimes in New York City has dropped precipitously since the early 1990s, domestic violence remains an ongoing and underreported problem, most commonly found in the form of Intimate Partner Violence (IPV). According to the CDC, one out of four women in the U.S. has experienced an incident of domestic violence by an intimate partner. In NYC, it’s estimated that nearly 352,000 residents are victimized by an intimate partner each year.

Incidents of domestic violence or intimate partner violence affect every neighborhood in the city, with varying degree of incidents reported at the local level, as filed under official precinct data.

This project aggregates and visualizes data on domestic violence incidents collected by the NYPD from January through December 2017.

Project

You can see the results here!

This project downloads monthly reports from the NYPD Domestic Violence reports webpage, extracts precinct information from public precinct websites, and merges the two sources to the boundaries of NYC's police precincts.

Data Sources

Getting started

To get started with the project, you need to have Python 3 and virtualenv set up on your local machine.

# Clone the repo and setup the environment and move into the dv-in-nyc directory
git clone https://github.com/kvn219/dv-in-nyc.git && cd dv-in-nyc
# Create a virtual environment and activate the virtual environment
virtualenv -p python3 venv && source venv/bin/activate
# Install the required packages
pip install requirements.txt
# Run the program!
make run

Docker

If you're comfortable with docker and make, you can run the following commands:

# Build the dockerfile locally
make docker_build
# Get inside the running docker container
make docker_run

Example use case

Create a choropleth Bokeh!

Releases

No releases published

Packages

No packages published

Languages