NYCPlanning / db-equitable-development-tool

Data Repo for the equitable development tool (EDDT)
MIT License
0 stars 0 forks source link

Eviction cases indicator #206

Closed SashaWeinstein closed 2 years ago

SashaWeinstein commented 2 years ago

One-off Housing Security Indicator

Source data comes aggregated by community district. The only new thing is the three digit CD code. This code is the "borough code", a numeric representation of boroughs plus the typical CD number. For example manhattan CD 1 is 101, as Manhattan has borough code 1.

Refactor community_district_to_PUMA

Most of the existing code we use to map CD's to PUMA's is reusable here, we just change how the CD code is constructed.

Move function into CD_helpers

Some community district-specific code was moved to CD_helpers.

Outstanding Questions

I used the "eviction_filings" as the indicator name in the outputted data. This is easy to change if need be