diff --git a/module3/exo1/analyse-syndrome-grippal.ipynb b/module3/exo1/analyse-syndrome-grippal.ipynb index 430fd99913ce16bbb981c0b633dcda4a08609830..2920c9809469ccf7e72830a8810d70c9d6c937df 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,