Skip to content
Snippets Groups Projects
Commit b8a6f6d5 authored by Benoît Courty's avatar Benoît Courty
Browse files

BASE_TD_FILO_IRIS_2021_DISP.csv

parent 22ede485
No related branches found
No related tags found
1 merge request!54Mise à jour de DataCirco
Pipeline #20080 passed
......@@ -80,9 +80,9 @@ df.columns = header
df.to_sql("insee_revenu_pauvrete_2020", con=engine, if_exists="append", index=False)
print("\t2021...")
utilitaires.unzip_file("BASE_TD_FILO_DISP_IRIS_2021_CSV.zip")
utilitaires.unzip_file("BASE_TD_FILO_IRIS_2021_DISP_CSV.zip")
fields, header = utilitaires.get_fields(
"BASE_TD_FILO_DISP_IRIS_2021.csv", delimiter=";"
"BASE_TD_FILO_IRIS_2021_DISP.csv", delimiter=";"
)
run(
f"""
......@@ -90,7 +90,7 @@ run(
CREATE TABLE IF NOT EXISTS insee_revenu_pauvrete_2021 ({fields});
"""
)
df = pd.read_csv("BASE_TD_FILO_DISP_IRIS_2021.csv", sep=";")
df = pd.read_csv("BASE_TD_FILO_IRIS_2021_DISP.csv", sep=";")
df.columns = header
df.to_sql("insee_revenu_pauvrete_2021", con=engine, if_exists="append", index=False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment