NYCPlanning / db-equitable-development-tool

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

Add tokens to 2000 Census PUMS and reorder columns for all demographic outputs #257

Closed mbh329 closed 2 years ago

mbh329 commented 2 years ago

2000_pums_demographics.py

Did some significant refactoring here to make code more concise and follow DRY principle. Added certain mapper functions on import, changed rename col function, moved remove_duplicate_cols to dcp_population_excel_helpers, reordered columns to follow latest conventions.

decennial_census_001020.py

Added count to column names - this actually should be refactored to follow mapper conventions we laid out but it works as is despite it being lengthy.