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
f9eed09007f01d9647a01a048e5f2766
mooc-rr
Commits
9914a969
Commit
9914a969
authored
Oct 03, 2022
by
f9eed09007f01d9647a01a048e5f2766
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no commit message
parent
98189366
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
31 deletions
+45
-31
influenza-like-illness-analysis.ipynb
module3/exo1/influenza-like-illness-analysis.ipynb
+45
-31
No files found.
module3/exo1/influenza-like-illness-analysis.ipynb
View file @
9914a969
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
4
,
"execution_count":
25
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -30,11 +30,12 @@
...
@@ -30,11 +30,12 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
5
,
"execution_count":
26
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
"data_url = \"./incidence-PAY-3.csv\""
"data_url = 'https://www.sentiweb.fr/datasets/incidence-PAY-3.csv'\n",
"data_file = \"./incidence-PAY-3.csv\""
]
]
},
},
{
{
...
@@ -61,9 +62,16 @@
...
@@ -61,9 +62,16 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
6
,
"execution_count":
27
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Offline data available.\n"
]
},
{
{
"data": {
"data": {
"text/html": [
"text/html": [
...
@@ -1026,12 +1034,20 @@
...
@@ -1026,12 +1034,20 @@
"[1978 rows x 10 columns]"
"[1978 rows x 10 columns]"
]
]
},
},
"execution_count":
6
,
"execution_count":
27
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
],
],
"source": [
"source": [
"import os\n",
"from urllib import request\n",
"if not os.path.exists(data_file):\n",
" print('Offline data not available: attempt to retrieve database online')\n",
" request.urlretrieve(data_url, data_file)\n",
"else:\n",
" print('Offline data available.')\n",
"\n",
"raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data"
"raw_data"
]
]
...
@@ -1045,7 +1061,7 @@
...
@@ -1045,7 +1061,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
7
,
"execution_count":
28
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -1107,7 +1123,7 @@
...
@@ -1107,7 +1123,7 @@
"1741 FR France "
"1741 FR France "
]
]
},
},
"execution_count":
7
,
"execution_count":
28
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -1125,7 +1141,7 @@
...
@@ -1125,7 +1141,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
8
,
"execution_count":
29
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -2090,7 +2106,7 @@
...
@@ -2090,7 +2106,7 @@
"[1977 rows x 10 columns]"
"[1977 rows x 10 columns]"
]
]
},
},
"execution_count":
8
,
"execution_count":
29
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -2119,7 +2135,7 @@
...
@@ -2119,7 +2135,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
9
,
"execution_count":
30
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -2148,7 +2164,7 @@
...
@@ -2148,7 +2164,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
10
,
"execution_count":
31
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -2172,7 +2188,7 @@
...
@@ -2172,7 +2188,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
11
,
"execution_count":
32
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -2200,16 +2216,16 @@
...
@@ -2200,16 +2216,16 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
12
,
"execution_count":
33
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb09
8234a2
0>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb09
5f1747
0>"
]
]
},
},
"execution_count":
12
,
"execution_count":
33
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
},
},
...
@@ -2239,16 +2255,16 @@
...
@@ -2239,16 +2255,16 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
13
,
"execution_count":
34
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb09
608a89
8>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb09
5944c8
8>"
]
]
},
},
"execution_count":
13
,
"execution_count":
34
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
},
},
...
@@ -2297,7 +2313,7 @@
...
@@ -2297,7 +2313,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
14
,
"execution_count":
35
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -2317,7 +2333,7 @@
...
@@ -2317,7 +2333,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
15
,
"execution_count":
36
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -2341,16 +2357,16 @@
...
@@ -2341,16 +2357,16 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
16
,
"execution_count":
37
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb09
608a828
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb09
58cb5c0
>"
]
]
},
},
"execution_count":
16
,
"execution_count":
37
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
},
},
...
@@ -2380,7 +2396,7 @@
...
@@ -2380,7 +2396,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
17
,
"execution_count":
38
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -2425,7 +2441,7 @@
...
@@ -2425,7 +2441,7 @@
"dtype: int64"
"dtype: int64"
]
]
},
},
"execution_count":
17
,
"execution_count":
38
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -2444,16 +2460,16 @@
...
@@ -2444,16 +2460,16 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
18
,
"execution_count":
39
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb095
ff4
a90>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7fb095
892
a90>"
]
]
},
},
"execution_count":
18
,
"execution_count":
39
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
},
},
...
@@ -2477,9 +2493,7 @@
...
@@ -2477,9 +2493,7 @@
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": null,
"metadata": {
"metadata": {},
"collapsed": true
},
"outputs": [],
"outputs": [],
"source": []
"source": []
}
}
...
...
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