Skip to content

Scripts to map JustFix.nyc tenant platform user data to Census data.

Notifications You must be signed in to change notification settings

JustFixNYC/tenants2-census-analysis

Repository files navigation

Quick start

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.

Install dependencies

python3 -m venv venv
source venv/bin/activate   # Or `venv/Scripts/activate` on Windows
pip install -r requirements.txt

Setup environment variables

cp .env.sample .env

Now edit .env as needed.

Download Census data

Run python download_census_data.py.

Download PLUTO data

You will need to manually download PLUTO and extract its main CSV to data/pluto.csv.

Then run python load_pluto.py.

Download user statistics

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.

Output data and view visualization

Run python output_data.py and then open index.html in your browser.

About

Scripts to map JustFix.nyc tenant platform user data to Census data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published