diff --git a/module3/exo1/influenza-like-illness-analysis.ipynb b/module3/exo1/influenza-like-illness-analysis.ipynb index c9fc52e288cc7529c6d6b996f1195b3242621bcf..38631f2feefbf4d1091f24580ad91686aba514d6 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": {},