This repository contains scripts that allow us to perform demographic statistics on JustFix.nyc tenant platform users based on the census tract associated with their BBL.
python3 -m venv venv
source venv/bin/activate # Or `venv/Scripts/activate` on Windows
pip install -r requirements.txt
cp .env.sample .env
Now edit .env
as needed.
Run python download_census_data.py
.
You will need to manually download PLUTO and extract its main CSV to
data/pluto.csv
.
Then run python load_pluto.py
.
You will need to manually download user statistics in JSON format from the tenants2 platform. The dataset is called "User statistics with BBLs" and can be downloaded from the admin interface under the "Download data" tab.
Copy the file to data/userstats-with-bbls.json
.
Then run python load_userstats.py
.
Run python output_data.py
and then open index.html
in your browser.