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.
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.
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
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