Openpolicedata

Latest version: v0.10

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.9

Added
- Added ability to load an Excel file from a zip file containing multiple files
- Adding ability to load multiple CSV files from the same year from a zip file
- Adding ability to handle datasets containing data from multiple states
- Adding ability for CSV files to have a query in the source table to only show relevant police data
- Added minimum Python version to datasets
Changed
- No longer throwing error if state field is not a known state. Enables multi-state datasets, which will break pre-v0.6 that do not allow for compatibility tables
Removed
- No longer updating datasets table when data load finds a capitalization error in the date field
Fixed
- sortby inputs to data loaders now all work
- Fixed issue where input swap checks in Source methods were checking for swaps in the wrong in put.
- Warnings were not being displayed when compatibility source table was being used

0.8.1

Fixed
- Fixed bug in get_count function for CSV files where count was wrong if there were quotes containing new line characters

0.8

Added
- Added data loader for HTML tables
Changed
- Changed error messages so that more errors in data loading point the user to the list of data site outages
Fixed
- Fixed bug in CKAN data loader when user requests a range of years

0.7.2

Added
- Added id_contains input to get_count, load_iter, load, and load_from_csv of Source class to help distinguish between multiple datasets matching a data request (along with previously added url_contains)
- Added SEARCHES, WARNINGS, STOPS_INCIDENTS, and STOPS_SUBJECTS table types

0.7.1

Added
- Added subject and officer name to standardization fields for officer-involved shootings only
- Added capability to handle more formats for storing data in Excel files (different ways of storing data across sheets and multiple tables in a single sheet)
Changed
- Year column in the OPD source table has been moved to the left to make it more visible
Deprecated
- Usage of iloc with datasets table is now discouraged due to change in location of Year column

0.7

Added
- Added POINTING WEAPON (by officer) table type
- Added data loader to combine multiple files that span a single year into a single dataset
- Added support for more text date column formats in Arcgis loader.
- Added url_contains input to get_count, load_iter, load, and load_from_csv of Source class to distinguish between multiple datasets matching a data request
- Added datasets input to get_years to allow getting the years in specific datasets.
- Added [Year Filter Guide](https://openpolicedata.readthedocs.io/en/stable/getting_started/year_filtering.html) to documentation
Changed
- Updates to standardization to handle more datasets
Fixed
- Fixed year filtering for Tucson OFFICER-INVOLVED SHOOTINGS - INCIDENTS dataset. Datasets is no longer available using OpenPoliceData prior to Version 0.7.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.