From 6778e500399d32045fcfec1c1b6da4bd31ce3b27 Mon Sep 17 00:00:00 2001 From: 248111c51d3bcbf9b09cc4dac4fd3399 <248111c51d3bcbf9b09cc4dac4fd3399@app-learninglab.inria.fr> Date: Fri, 23 Apr 2021 09:13:54 +0000 Subject: [PATCH] ajout commentaire --- module3/exo1/analyse-syndrome-grippal.ipynb | 35 ++++++++++++--------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/module3/exo1/analyse-syndrome-grippal.ipynb b/module3/exo1/analyse-syndrome-grippal.ipynb index e9115f6..bb8971b 100644 --- a/module3/exo1/analyse-syndrome-grippal.ipynb +++ b/module3/exo1/analyse-syndrome-grippal.ipynb @@ -37,6 +37,27 @@ "data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "création du fichier csv local avec vérification que celui ci n'existe pas déjà " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "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": "markdown", "metadata": {}, @@ -59,20 +80,6 @@ "La première ligne du fichier CSV est un commentaire, que nous ignorons en précisant `skiprows=1`." ] }, - { - "cell_type": "code", - "execution_count": null, - "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": null, -- 2.18.1