Skip to content

apwheele/crimepy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crimepy -- a python package for crime analysis

A python package to help conduct different various types of crime analysis. Mostly a collection of various functions I have used over the years.

Andrew Wheeler

Crime De-Coder LLC

Installation

To install this package from GitHub, you can use pip:

pip install git+https://github.com/apwheele/crimepy.git

For now, I would suggest installing editable, since it is in a very early stage. E.g.

git clone https://github.com/apwheele/crimepy.git
cd ./crimepy
pip install -e .

And then just periodically do a git pull to get the most recent version.

Examples

See the notebooks folder for example analyses:

ToDo

Additional examples in Notebooks and documentation (contributors welcome!)

  • Funnel charts
  • nearby chains
  • SPPT crime to police activity example
  • small sample Benford/Day of week functions & example
  • full docstrings for all functions
  • tests
  • github actions for code quality and pytest
  • try patrol districting with googles ORtools, see how fast it runs
  • simpler tests for districting
  • Folium example for lines and graduated circles
  • scan statistic (see this blog post for R implementation)

Other additional methods I may add (if you want these, let me know):

Suggestions are always welcome -- direct contributions are a better way to get the items you want in the codebase.

Getting Started with Python

Don't know where to get started? Check out my introductory book on python for crime analysts, Data Science for Crime Analysis with Python

References

About

A python package to help conduct different various types of crime analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published