Correction du code pour la sauvegarde

parent e2200c5c
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 12, "execution_count": 14,
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
{ {
...@@ -1025,7 +1025,7 @@ ...@@ -1025,7 +1025,7 @@
"[1908 rows x 10 columns]" "[1908 rows x 10 columns]"
] ]
}, },
"execution_count": 12, "execution_count": 14,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -1036,9 +1036,9 @@ ...@@ -1036,9 +1036,9 @@
"if pth.isfile(file_path)==0:\n", "if pth.isfile(file_path)==0:\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n", " raw_data = pd.read_csv(data_url, skiprows=1)\n",
" df=pd.DataFrame(raw_data,columns=['week','indicator','inc','inc_low','inc_up','inc100','inc100_low','inc100_up','geo_insee','geo_name'])\n", " df=pd.DataFrame(raw_data,columns=['week','indicator','inc','inc_low','inc_up','inc100','inc100_low','inc100_up','geo_insee','geo_name'])\n",
" df.to_csv('r'+file_path,index=False)\n", " df.to_csv(file_path,index=False)\n",
"else:\n", "\n",
" raw_data = pd.read_csv(file_path)\n", "raw_data = pd.read_csv(file_path)\n",
"\n", "\n",
"raw_data" "raw_data"
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment