This has been moved to https://github.com/UK-IPOP/open-data-pipeline
Original site can be found here.
This replicates (in a smaller way) previous analyses done in Chicago by extracting Open Data, geocoding, and running the drug extraction tool.
This project requires:
Name | Version |
---|---|
python | >= 3.9, < 3.10 |
poetry | 1.1 |
Go | 1.17 |
jq | 1.6 |
git | Any |
If you don't plan on using the drug extraction tool you will not need Go or jq.
git clone
or gh repo clone
will work to download the source code.
For example:
git clone https://github.com/UK-IPOP/milwaukee-analysis.git
Then cd milwaukee-data
to move into the directory.
To run the analysis you can then simply run:
bash scripts/pipeline.sh
inside the milwaukee-data folder.
This will fetch the data from the web (~5 minutes), geocode it (~45 minutes), perform some simple data cleaning and then download and run the drug extraction tool (a few minutes).
Your results will be in data/results.csv
(for records) and data/drug_results.csv
(for drug info).
Enjoy! 😁