Advanced Installation#
OpenPoliceData is installed from PyPI.
Basic installation:#
The standard installation will enable almost all datasets available in OpenPoliceData to be loaded.
pip install openpolicedata
Install GeoPandas#
If GeoPandas is installed, OpenPoliceData can load data that contains location information into GeoDataFrames to aid geospatial analysis. Data without location inforation will still be loaded as a pandas DataFrame. The easiest way to install GeoPandas is with conda:
conda install geopandas
Install with Optional Dependencies#
A few datasets require the installation of additional packages (rapidfuzz and msoffcrypto-tool) in order to load them. They can be installed with OpenPoliceData with the following pip command:
pip install "openpolicedata[optional]"
Alternatively, the user can wait to install these packages if they are ever needed. OpenPoliceData throws an error with the required optional packages when a dataset is read that requires them.