no commit message

parent 21e19d21
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
"%matplotlib inline\n", "%matplotlib inline\n",
"import matplotlib.pyplot as plt\n", "import matplotlib.pyplot as plt\n",
"import pandas as pd\n", "import pandas as pd\n",
"import os\n",
"import urllib.request\n",
"import isoweek" "import isoweek"
] ]
}, },
...@@ -65,7 +67,17 @@ ...@@ -65,7 +67,17 @@
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"raw_data = pd.read_csv(data_url, skiprows=1)\n", "\n",
"local_file = \"donnees_grippal.csv\"\n",
"\n",
"if not os.path.exists(local_file):\n",
" urllib.request.urlretrieve(data_url, local_file)\n",
"else:\n",
" print(\"Local file already exists\")\n",
"\n",
"raw_data = pd.read_csv(local_file, skiprows=1)\n",
"raw_data.head()\n",
"\n",
"raw_data" "raw_data"
] ]
}, },
...@@ -364,7 +376,7 @@ ...@@ -364,7 +376,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.6.1" "version": "3.6.4"
} }
}, },
"nbformat": 4, "nbformat": 4,
......
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