Converts selected zip codes of nychealth's coronavirus-data repo into formatted JSON files.
- Python 3
- Gitpython module
- Selected restaurant data CSV.
- Install Python 3
- Install Gitpython using pip. Run the following in cmd/terminal:
- Windows:
py -m pip install gitpython
- macOS/Linux:
pip3 install gitpython
- Restaurants's CSV file is located in
data/restaurants_recoded.csv
.- Zip codes are in the 2nd column. The zipcode is the last substring when space-delimited.
- Ex:
123 Fake St. New York, NY 12345
would yield the substring12345
- Ex:
- Zip codes are in the 2nd column. The zipcode is the last substring when space-delimited.
- Run
main.py
. - Find your outputted JSON files in
covid_latest.json
andcovid_week_old.json
.