File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1313
1414FILENAME = "voitures-rechargeables-par-commune"
1515IMMATRICULATIONS_FILENAME = os .path .join (DATA_PATH , FILENAME + ".csv" )
16- URL = "https://www. data.gouv.fr/fr/datasets/r/4e4fccdb-6acb-4e31-8b2d-cb170f639f1a"
16+ URL = "https://object.files. data.gouv.fr/hydra-parquet/hydra-parquet/90e0d717-deda-4bdc-9987-f82faac5bc93.parquet" # parquet
1717
1818
1919def get_immatriculations_data_local () -> pd .DataFrame :
@@ -34,9 +34,7 @@ def get_immatriculations_data_local() -> pd.DataFrame:
3434
3535
3636def get_immatriculations_data_online () -> pd .DataFrame :
37- immatriculations = pd .read_csv (
38- URL , delimiter = ";" , dtype = {"codgeo" : "str" , "CODGEO" : "str" }
39- )
37+ immatriculations = pd .read_parquet (URL )
4038 return immatriculations
4139
4240
You can’t perform that action at this time.
0 commit comments