NYCPlanning / db-equitable-development-tool

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

Units Paying Rent Percent and PCT MOE Refactor #277

Closed td928 closed 2 years ago

td928 commented 2 years ago

Overview

Since there is some messiness to the situation due to 1. two indicators share the same columns with HUPRt now exists in both units_affordable and also rent_median so the final collate for output require to eliminate at least one 2. the mistake in the naming the HUPRt in the ami source data. There are essentially two steps taken to

a little more details and explanations below for exactly what was done

units_affordable

apart from simply taking away, the biggest change in this part of the refactoring is also removing from the order_affordable function to ensure that the final columns ordering no longer has the units_renteroccu either.

rent_median

the only two steps required is first include the pct and pct_moe in the measurements given to the columns reordering functions to generate the appropriate and removing the dropna at the end to ensure they are included. Also two columns the total units_payingrent for 1519 are hardcoded to have 100 pct to impute values from ami source file.