walkerke / pygris

Use US Census shapefiles in Python (port of the R tigris package)
https://walker-data.com/pygris
MIT License
107 stars 16 forks source link

Year Vintage Mismatch for Zctas #14

Open Joshkking opened 9 months ago

Joshkking commented 9 months ago

As seen in this line for pulling zcta data: https://github.com/walkerke/pygris/blob/main/pygris/enumeration_units.py#L684 creates a bit of confusion (if not possible error) when trying to pull from the year 2020.

If the year parameter corresponds to the relevant ACS 5year then the zcta vintage for 2020 is actually the 2010 zcta vintages that should be pulled instead (per ACS geography years). I'm not sure what the best solution is here as the Tiger "years" are also somewhat ambiguous to myself, but it is clear the 2020 Tiger year is the most recent to have the 2010 zcta vntage needing some better way in pygris to handle that possible transition and align with the acs 5year.