InseeFrLab / pynsee

pynsee package contains tools to easily search and download french data from INSEE and IGN APIs
https://pynsee.readthedocs.io/en/latest/
MIT License
69 stars 10 forks source link

pynsee.localdata.get_geo_list throws an exception when encoutering obsolete territories #139

Closed tgrandje closed 1 year ago

tgrandje commented 1 year ago

The "DateSuppression" field returned by the API in that case will trigger an exception (as the number of columns in the generated dataframe will change).

from pynsee.localdata import get_geo_list
df = get_geo_list("departements", "1990-01-01")
print(df.query('CODE=="01"'))
hadrilec commented 1 year ago

solved by #142