comment modifs

parent 049e522a
......@@ -59,18 +59,21 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 11,
"metadata": {},
"outputs": [],
"source": [
"raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data\n",
"file = '/home/jovyan/work/module3/exo1/incidence-PAY-3.csv'\n",
"# check existing local copy\n",
"try:\n",
" local_data = pd.read_csv(file)\n",
"# if no local copy, create it\n",
"except FileNotFoundError:\n",
" raw_data.to_csv('incidence-PAY-3.csv')\n",
"rax_data = pd.read_csv('incidence-PAY-3.csv')"
"# read local copy\n",
"raw_data = pd.read_csv('incidence-PAY-3.csv')"
]
},
{
......@@ -82,7 +85,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 12,
"metadata": {},
"outputs": [
{
......@@ -106,6 +109,7 @@
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Unnamed: 0</th>\n",
" <th>week</th>\n",
" <th>indicator</th>\n",
" <th>inc</th>\n",
......@@ -121,6 +125,7 @@
" <tbody>\n",
" <tr>\n",
" <th>1656</th>\n",
" <td>1656</td>\n",
" <td>198919</td>\n",
" <td>3</td>\n",
" <td>0</td>\n",
......@@ -137,14 +142,14 @@
"</div>"
],
"text/plain": [
" week indicator inc inc_low inc_up inc100 inc100_low inc100_up \\\n",
"1656 198919 3 0 NaN NaN 0 NaN NaN \n",
" Unnamed: 0 week indicator inc inc_low inc_up inc100 inc100_low \\\n",
"1656 1656 198919 3 0 NaN NaN 0 NaN \n",
"\n",
" geo_insee geo_name \n",
"1656 FR France "
" inc100_up geo_insee geo_name \n",
"1656 NaN FR France "
]
},
"execution_count": 4,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
......
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