Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
6c4b0fdbf8f14f2bf5b4f27e84287421
mooc-rr
Commits
36512077
Commit
36512077
authored
Mar 12, 2023
by
6c4b0fdbf8f14f2bf5b4f27e84287421
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no commit message
parent
9acc8026
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
8 deletions
+67
-8
influenza-like-illness-analysis.ipynb
module3/exo1/influenza-like-illness-analysis.ipynb
+67
-8
No files found.
module3/exo1/influenza-like-illness-analysis.ipynb
View file @
36512077
...
@@ -2475,23 +2475,82 @@
...
@@ -2475,23 +2475,82 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
8
,
"execution_count":
16
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th># @source=\"réseau Sentinelles</th>\n",
" <th>INSERM</th>\n",
" <th>Sorbonne Université</th>\n",
" <th>http://www.sentiweb.fr\"</th>\n",
" <th>@meta={\"period\":[198444</th>\n",
" <th>202309]</th>\n",
" <th>geo:[\"PAY\"</th>\n",
" <th>1]</th>\n",
" <th>geo_ref:\"insee\"</th>\n",
" <th>indicator:\"3\"</th>\n",
" <th>type:\"all\"</th>\n",
" <th>conf_int:true</th>\n",
" <th>compact:false}</th>\n",
" <th>@date=2023-03-12T17:29:51+01:00</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"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": [
"source": [
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import isoweek\n",
"import os\n",
"\n",
"\n",
"\n",
"\n",
"
local
_file = \"incidence-PAY-3.csv\"\n",
"
data
_file = \"incidence-PAY-3.csv\"\n",
"\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",
" data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n",
" raw_data = pd.read_csv(data_url,
encoding='iso-8859-1',
skiprows=1)\n",
" raw_data.to_csv(
local
_file, index=False)\n",
" raw_data.to_csv(
data
_file, index=False)\n",
"else:\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",
"\n",
"data = raw_data.dropna().copy()\n",
"data = raw_data.dropna().copy()\n",
"\n"
"\n",
"data"
]
]
},
},
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment