fix check

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