From 8051f5285656374c78f054350cff94b3133695d4 Mon Sep 17 00:00:00 2001 From: 4a753b313c5010a471699386fb440078 <4a753b313c5010a471699386fb440078@app-learninglab.inria.fr> Date: Wed, 7 Apr 2021 17:20:55 +0000 Subject: [PATCH] Second commit --- module3/exo1/analyse-syndrome-grippal.ipynb | 23 +++++++-------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/module3/exo1/analyse-syndrome-grippal.ipynb b/module3/exo1/analyse-syndrome-grippal.ipynb index 430fd99..2920c98 100644 --- a/module3/exo1/analyse-syndrome-grippal.ipynb +++ b/module3/exo1/analyse-syndrome-grippal.ipynb @@ -32,7 +32,14 @@ "metadata": {}, "outputs": [], "source": [ - "data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"" + "data_file = \"syndrome-grippal.csv\"\n", + "\n", + "import os\n", + "import urllib.request\n", + "if not os.path.exists(data_file):\n", + " urllib.request.urlretrieve(data_url, data_file)\n", + "\n", + "#data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"" ] }, { @@ -57,20 +64,6 @@ "La première ligne du fichier CSV est un commentaire, que nous ignorons en précisant `skiprows=1`." ] }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": {}, - "outputs": [], - "source": [ - "data_file = \"syndrome-grippal.csv\"\n", - "\n", - "import os\n", - "import urllib.request\n", - "if not os.path.exists(data_file):\n", - " urllib.request.urlretrieve(data_url, data_file)" - ] - }, { "cell_type": "code", "execution_count": 5, -- 2.18.1