fix check

parent 1f2fe6a1
......@@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
......@@ -17,7 +17,8 @@
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import isoweek\n",
"import os.path"
"import os.path\n",
"import urllib.request"
]
},
{
......@@ -38,15 +39,14 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"raw_file = r'c:/temp.csv'\n",
"if( os.path.isfile(raw_file) ):\n",
" raw_data = pd.read_csv(raw_file, skiprows=1)\n",
"else:\n",
" raw_data = pd.read_csv(data_url, skiprows=1)"
"# copie local si elle n'existe pas\n",
"raw_file = r'raw_data.csv'\n",
"if not os.path.isfile(raw_file):\n",
" urllib.request.urlretrieve(data_url, raw_file)"
]
},
{
......@@ -73,7 +73,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 11,
"metadata": {},
"outputs": [
{
......@@ -1038,12 +1038,13 @@
"[1996 rows x 10 columns]"
]
},
"execution_count": 7,
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"raw_data = pd.read_csv(raw_file, skiprows=1)\n",
"raw_data"
]
},
......
This diff is collapsed.
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