From 87858bc2c24f09cd2291fe62bd41cfb420261b3c Mon Sep 17 00:00:00 2001 From: 8e53d7fafab76bc5fa0dd3b634def1c2 <8e53d7fafab76bc5fa0dd3b634def1c2@app-learninglab.inria.fr> Date: Mon, 6 Jun 2022 08:43:38 +0000 Subject: [PATCH] no commit message --- .../influenza-like-illness-analysis.ipynb | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/module3/exo1/influenza-like-illness-analysis.ipynb b/module3/exo1/influenza-like-illness-analysis.ipynb index c9fc52e..38631f2 100644 --- a/module3/exo1/influenza-like-illness-analysis.ipynb +++ b/module3/exo1/influenza-like-illness-analysis.ipynb @@ -16,7 +16,14 @@ "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "import pandas as pd\n", - "import isoweek" + "import isoweek\n", + "\n", + "data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n", + "data_file = \"syndrome-grippal.csv\"\n", + "import os\n", + "import urllib.request\n", + "if not os.path.exists(data_file):\n", + " urllib.request.urlretrieve(data_url, data_file)" ] }, { @@ -26,20 +33,6 @@ "The data on the incidence of influenza-like illness are available from the Web site of the [Réseau Sentinelles](http://www.sentiweb.fr/). We download them as a file in CSV format, in which each line corresponds to a week in the observation period. Only the complete dataset, starting in 1984 and ending with a recent week, is available for download." ] }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [], - "source": [ - "data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n", - "data_file = \"syndrome-grippal.csv\"\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": {}, -- 2.18.1