Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IT import script #141

Closed
augusto-herrmann opened this issue Mar 25, 2022 · 0 comments · Fixed by #145
Closed

Fix IT import script #141

augusto-herrmann opened this issue Mar 25, 2022 · 0 comments · Fixed by #145
Labels
Data Data sources and ingestion automation

Comments

@augusto-herrmann
Copy link
Collaborator

The script that imports data from Italy raises an error:

python importIT.py 
Downloading indicePA data
indicePA data downloaded, saving to amministrazioni.txt
indicePA data saved
Converting data to publicbodies csv file
Traceback (most recent call last):
  File "importIT.py", line 101, in <module>
    convert_data()
  File "importIT.py", line 61, in convert_data
    if ipa_row["tipologia_istat"] in not_wanted_categories:
KeyError: 'tipologia_istat'

Looks like a column does not exist in the source data anymore.

We should fix it by replacing the absent column with an existing column, if available. If not, just give up using the data from the absent column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Data Data sources and ingestion automation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant