NYCPlanning / db-factfinder

data ETL for population fact finder (decennial + acs)
https://nycplanning.github.io/db-factfinder/factfinder/
MIT License
2 stars 3 forks source link

Implement median top/bottom coding #196

Closed mgraber closed 3 years ago

mgraber commented 3 years ago

Based on labs thresholds: https://github.com/NYCPlanning/labs-factfinder-api/blob/f8033933664f29d07b1ee9a04792b6f31e0241a3/special-calculations/data/top-bottom-codings.js

This is a modification of the following lines, which currently bottom code all medians: https://github.com/NYCPlanning/db-factfinder/blob/66094c6178ab42392552096539c1ba9065450953/factfinder/median.py#L36-L38

Top coding occurs here, again for all medians: https://github.com/NYCPlanning/db-factfinder/blob/66094c6178ab42392552096539c1ba9065450953/factfinder/median.py#L42-L44

mgraber commented 3 years ago

Top coding threshold for 2018 & 2019

Top coding threshold for 2010 (non-inflated)

https://github.com/NYCPlanning/db-factfinder/issues/162#issue-947955600