Skip to content

the4thparadigm/denvercrime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Denver Crime Data Science

the 4th Paradigm data science student organization

Colorado State University | Fort Collins, Colorado

Data

This project analyzes data from the city of Denver, and can be found here. The data are also hosted on kaggle. From denvergov.org:

This dataset includes criminal offenses in the City and County of Denver for the previous five calendar years plus the current year to date. The data is based on the National Incident Based Reporting System (NIBRS) which includes all victims of person crimes and all crimes within an incident. The data is dynamic, which allows for additions, deletions and/or modifications at any time, resulting in more accurate information in the database. Due to continuous data entry, the number of records in subsequent extractions are subject to change. Crime data is updated Monday through Friday.

Because the data are updated regularly, we must choose a snapshot to ensure that everyone has the same data. We will be using version 25, which can be accessed at https://www.kaggle.com/paultimothymooney/denver-crime-data/version/25. Make sure you download this version, NOT the latest version.

Getting started

Please consult the Project setup section of the hitchhiker's guide before proceeding.

  • Clone this repo
  • Create your own branch to work on
  • Create a virtual environment by running virtualenv venv in the project root directory. Activate it with source venv\bin\activate
  • Install packages from requirements.txt by running pip3 install -r requirements.txt in the project root directory
  • System environment
    • Append the repo src folder to PYTHONPATH to allow module imports
    • Create environment variable that points to config file so python can find it
  • Download the data from kaggle
    • Get a kaggle API token from your profile page (kaggle.com/username/account --> Create new API token)
    • In a terminal, navigate to your home directory
    • mkdir .kaggle
    • mv Downloads/kaggle.json .kaggle/kaggle.json
    • Navigate to the project directory
    • kaggle datasets download -d paultimothymooney/denver-crime-data/version/25
    • mv denver-crime-data.zip data/raw
    • unzip denver-crime-data.zip

About

Analysis of Denver crime data by the 4th Paradigm student organization.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published