MaxDragonheart / istatcelldata

Con ISTAT Cell Data puoi ottenere facilmente il set di dati riferiti ai censimenti ISTAT in cui sono stati rilasciati anche i dati delle celle censuarie.
https://maxdragonheart.github.io/istatcelldata/
MIT License
3 stars 0 forks source link

KeyError: "['cod_reg', 'den_reg', 'cod_prov', 'den_prov', 'cod_com'] not in index" #18

Closed MaxDragonheart closed 1 year ago

MaxDragonheart commented 1 year ago
Traceback (most recent call last):
  File "/home/max/DEV/mio/census_istat/scripts/c_process_data.py", line 21, in <module>
    join_year_census(
  File "/home/max/DEV/mio/census_istat/census_istat/geodata/manage_geodata.py", line 131, in join_year_census
    data = data[shared_columns]
  File "/home/max/.cache/pypoetry/virtualenvs/census-istat-teFCa762-py3.10/lib/python3.10/site-packages/pandas/core/frame.py", line 3813, in __getitem__
    indexer = self.columns._get_indexer_strict(key, "columns")[1]
  File "/home/max/.cache/pypoetry/virtualenvs/census-istat-teFCa762-py3.10/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 6070, in _get_indexer_strict
    self._raise_if_missing(keyarr, indexer, axis_name)
  File "/home/max/.cache/pypoetry/virtualenvs/census-istat-teFCa762-py3.10/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 6133, in _raise_if_missing
    raise KeyError(f"{not_found} not in index")
KeyError: "['cod_reg', 'den_reg', 'cod_prov', 'den_prov', 'cod_com'] not in index"