A Python utility for cleaning and standardizing St. Louis Metropolitan Police Department (SLMPD) crime data for spatial analysis.
🗺️ Explore the data: St. Louis Crime Data Explorer: a free map, charts and hotspots for reported offenses in the City of St. Louis, updated monthly.
📖 Full documentation, guides, and details have moved to the geocrime-stl Documentation Site.
🚀 Quick Start
Install
pip install geocrime-stl
Usage
import geocrime_stl as gc
data_pkg = gc.run_pipeline(mm, yyyy)
gc.generate_monthly_metrics(data_pkg)
gc.plot_monthly_maps(data_pkg)
Data is available from January 2024. pip install gives you the library; the scripts that build the full history (download_historical_data.py) and add the latest month (run_pipeline.py), the master dataset and the Explorer source come with a clone of this repository. See the Usage and Installation pages.
⚠️ Important Note & Disclaimer
This independent open-source utility fetches data directly from the SLMPD Stats Page. It is not affiliated with or endorsed by the SLMPD or the City of St. Louis.
🤝 Contributions
I am not accepting pull requests at this time, but feel free to open an Issue or fork the repository for your own needs.
📚 Additional Resources
To explore the data collected to date, please visit the St. Louis Crime Data Explorer. It has a map you can search by address, ward or neighborhood, trend charts, and hotspots. See its methodology page for how the numbers are made and which sensitive locations are withheld.
For complete data disclaimers, ETL architecture, and local setup guides, please visit the Documentation Site.