diff --git a/module3/exo1/analyse-syndrome-grippal.ipynb b/module3/exo1/analyse-syndrome-grippal.ipynb index e9115f60426a3248e551501543955f70a7dd7ddc..bb8971bfd948f4981effa6a160c7d415344a225e 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,