From 365120778ee6e8629a81b12c769aa623ebaa6c23 Mon Sep 17 00:00:00 2001
From: 6c4b0fdbf8f14f2bf5b4f27e84287421
<6c4b0fdbf8f14f2bf5b4f27e84287421@app-learninglab.inria.fr>
Date: Sun, 12 Mar 2023 17:47:12 +0000
Subject: [PATCH] no commit message
---
.../influenza-like-illness-analysis.ipynb | 75 +++++++++++++++++--
1 file changed, 67 insertions(+), 8 deletions(-)
diff --git a/module3/exo1/influenza-like-illness-analysis.ipynb b/module3/exo1/influenza-like-illness-analysis.ipynb
index c8ccc62..8020146 100644
--- a/module3/exo1/influenza-like-illness-analysis.ipynb
+++ b/module3/exo1/influenza-like-illness-analysis.ipynb
@@ -2475,23 +2475,82 @@
},
{
"cell_type": "code",
- "execution_count": 8,
+ "execution_count": 16,
"metadata": {},
- "outputs": [],
+ "outputs": [
+ {
+ "data": {
+ "text/html": [
+ "
\n",
+ "\n",
+ "
\n",
+ " \n",
+ " \n",
+ " | \n",
+ " # @source=\"réseau Sentinelles | \n",
+ " INSERM | \n",
+ " Sorbonne Université | \n",
+ " http://www.sentiweb.fr\" | \n",
+ " @meta={\"period\":[198444 | \n",
+ " 202309] | \n",
+ " geo:[\"PAY\" | \n",
+ " 1] | \n",
+ " geo_ref:\"insee\" | \n",
+ " indicator:\"3\" | \n",
+ " type:\"all\" | \n",
+ " conf_int:true | \n",
+ " compact:false} | \n",
+ " @date=2023-03-12T17:29:51+01:00 | \n",
+ "
\n",
+ " \n",
+ " \n",
+ " \n",
+ "
\n",
+ "
"
+ ],
+ "text/plain": [
+ "Empty DataFrame\n",
+ "Columns: [# @source=\"réseau Sentinelles, INSERM, Sorbonne Université, http://www.sentiweb.fr\", @meta={\"period\":[198444, 202309], geo:[\"PAY\", 1], geo_ref:\"insee\", indicator:\"3\", type:\"all\", conf_int:true, compact:false}, @date=2023-03-12T17:29:51+01:00]\n",
+ "Index: []"
+ ]
+ },
+ "execution_count": 16,
+ "metadata": {},
+ "output_type": "execute_result"
+ }
+ ],
"source": [
+ "%matplotlib inline\n",
+ "import matplotlib.pyplot as plt\n",
+ "import pandas as pd\n",
+ "import isoweek\n",
+ "import os\n",
"\n",
"\n",
- "local_file = \"incidence-PAY-3.csv\"\n",
+ "data_file = \"incidence-PAY-3.csv\"\n",
"\n",
- "if not os.path.exists(local_file):\n",
+ "if not os.path.isfile(data_file):\n",
" data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
- " raw_data = pd.read_csv(data_url, skiprows=1)\n",
- " raw_data.to_csv(local_file, index=False)\n",
+ " raw_data = pd.read_csv(data_url, encoding='iso-8859-1', skiprows=1)\n",
+ " raw_data.to_csv(data_file, index=False)\n",
"else:\n",
- " raw_data = pd.read_csv(local_file, encoding='ISO-8859-1')\n",
+ " raw_data = pd.read_csv(data_file, encoding='iso-8859-1')\n",
"\n",
"data = raw_data.dropna().copy()\n",
- "\n"
+ "\n",
+ "data"
]
},
{
--
2.18.1