Open apsocarras opened 8 months ago
Made quick check of what alternative schemas there are (https://github.com/apsocarras/pygris/blob/issue-4/reprex/reprex.ipynb)
schema_str, count "AREA, PERIMETER, CO99D00, CO99_D00_I, STATE, COUNTY, NAME, LSAD, LSAD_TRANS, geometry", 3 "AREA, PERIMETER, CO99D90, CO99_D90_I, ST, CO, NAME, geometry", 3 "GEO_ID, STATE, COUNTY, NAME, LSAD, CENSUSAREA, geometry", 3 "STATEFP00, COUNTYFP00, CNTYIDFP00, NAME00, NAMELSAD00, LSAD00, CLASSFP00, MTFCC00, UR00, FUNCSTAT00, ALAND00, AWATER00, INTPTLAT00, INTPTLON00, geometry", 3 "STATEFP10, COUNTYFP10, COUNTYNS10, GEOID10, NAME10, NAMELSAD10, LSAD10, CLASSFP10, MTFCC10, CSAFP10, CBSAFP10, METDIVFP10, FUNCSTAT10, ALAND10, AWATER10, INTPTLAT10, INTPTLON10, geometry", 3
My proposal is to change the validation to check for any of the listed variants of the 'STATEFP' column (STATE, ST, STATEFP00, STATEFP10)
counties(), line 93, fails for 2010
E.g.
Link to TIGER file used in above example: https://www2.census.gov/geo/tiger/TIGER2010/COUNTY/2010/tl_2010_us_county10.zip