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
c245dfdbe26a0f6c8080160b97aebe62
mooc-rr
Commits
44903fea
Commit
44903fea
authored
Sep 21, 2020
by
c245dfdbe26a0f6c8080160b97aebe62
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read local CSV
parent
12ecd8ab
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1921 additions
and
26 deletions
+1921
-26
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+47
-26
incidence-PAY-3.csv
module3/exo1/incidence-PAY-3.csv
+1874
-0
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
44903fea
...
...
@@ -35,6 +35,27 @@
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Afin de palier à une potentielle disparition du jeu de données de la source. Nous mettons à disposition les données directement avec ce notebook."
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"data_file = 'incidence-PAY-3.csv'\n",
"\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": {},
...
...
@@ -59,7 +80,7 @@
},
{
"cell_type": "code",
"execution_count":
3
,
"execution_count":
4
,
"metadata": {},
"outputs": [
{
...
...
@@ -1024,13 +1045,13 @@
"[1872 rows x 10 columns]"
]
},
"execution_count":
3
,
"execution_count":
4
,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"raw_data = pd.read_csv(data_
url
, skiprows=1)\n",
"raw_data = pd.read_csv(data_
file
, skiprows=1)\n",
"raw_data"
]
},
...
...
@@ -1043,7 +1064,7 @@
},
{
"cell_type": "code",
"execution_count":
4
,
"execution_count":
5
,
"metadata": {},
"outputs": [
{
...
...
@@ -1105,7 +1126,7 @@
"1635 FR France "
]
},
"execution_count":
4
,
"execution_count":
5
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -1123,7 +1144,7 @@
},
{
"cell_type": "code",
"execution_count":
5
,
"execution_count":
6
,
"metadata": {},
"outputs": [
{
...
...
@@ -2088,7 +2109,7 @@
"[1871 rows x 10 columns]"
]
},
"execution_count":
5
,
"execution_count":
6
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -2118,7 +2139,7 @@
},
{
"cell_type": "code",
"execution_count":
6
,
"execution_count":
7
,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -2148,7 +2169,7 @@
},
{
"cell_type": "code",
"execution_count":
7
,
"execution_count":
8
,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -2173,7 +2194,7 @@
},
{
"cell_type": "code",
"execution_count":
8
,
"execution_count":
9
,
"metadata": {},
"outputs": [
{
...
...
@@ -2201,16 +2222,16 @@
},
{
"cell_type": "code",
"execution_count":
9
,
"execution_count":
10
,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
09a3ca0b38
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
3e78c23780
>"
]
},
"execution_count":
9
,
"execution_count":
10
,
"metadata": {},
"output_type": "execute_result"
},
...
...
@@ -2240,16 +2261,16 @@
},
{
"cell_type": "code",
"execution_count": 1
0
,
"execution_count": 1
1
,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
09a1b669b
0>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
3e769d978
0>"
]
},
"execution_count": 1
0
,
"execution_count": 1
1
,
"metadata": {},
"output_type": "execute_result"
},
...
...
@@ -2300,7 +2321,7 @@
},
{
"cell_type": "code",
"execution_count": 1
1
,
"execution_count": 1
2
,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -2320,7 +2341,7 @@
},
{
"cell_type": "code",
"execution_count": 1
2
,
"execution_count": 1
3
,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -2344,16 +2365,16 @@
},
{
"cell_type": "code",
"execution_count": 1
3
,
"execution_count": 1
4
,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
09a1a9339
0>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
3e769782b
0>"
]
},
"execution_count": 1
3
,
"execution_count": 1
4
,
"metadata": {},
"output_type": "execute_result"
},
...
...
@@ -2383,7 +2404,7 @@
},
{
"cell_type": "code",
"execution_count": 1
4
,
"execution_count": 1
5
,
"metadata": {},
"outputs": [
{
...
...
@@ -2426,7 +2447,7 @@
"dtype: int64"
]
},
"execution_count": 1
4
,
"execution_count": 1
5
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -2445,16 +2466,16 @@
},
{
"cell_type": "code",
"execution_count": 1
5
,
"execution_count": 1
6
,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
09a19f0da0
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
3e768da198
>"
]
},
"execution_count": 1
5
,
"execution_count": 1
6
,
"metadata": {},
"output_type": "execute_result"
},
...
...
module3/exo1/incidence-PAY-3.csv
0 → 100644
View file @
44903fea
This diff is collapsed.
Click to expand it.
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