This is a python repository to download UK police crime data and to visualise it using pandas
, geopandas
, matplotlib
and plotly
-
Clone this repository using
git clone
-
cd
into this repository locally -
- Create a conda environment using
conda env create -f environment.yml
- Or use
pip install -r requirements.txt
- Create a conda environment using
-
Use
data_gather.ipynb
to download the UK crime data using https://data.police.uk/data/archive/ -
Create a mapbox account on https://account.mapbox.com/auth/signup/ and get a token from https://account.mapbox.com/
-
- Create a JSON file
authentication.json
and put it in this folder using the following format:
{ "mapbox_access_token": "<insert token>" }
- Otherwise you can directly input the token in the notebook
- Create a JSON file
-
Use
data_visualisation.ipynb