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
e6a2acf6b1e71323e580d5754b297b60
mooc-rr
Commits
48fd3f8c
Commit
48fd3f8c
authored
Mar 25, 2020
by
e6a2acf6b1e71323e580d5754b297b60
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction de l'exercice
parent
1fa062c8
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1868 additions
and
5 deletions
+1868
-5
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+20
-5
syndrome-grippal.csv
module3/exo1/syndrome-grippal.csv
+1848
-0
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
48fd3f8c
...
...
@@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count":
24
,
"execution_count":
39
,
"metadata": {},
"outputs": [],
"source": [
...
...
@@ -34,7 +34,21 @@
"source": [
"#modification de l'url vers le CSV upload sur gitlab\n",
"# data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
"data_url = \"https://app-learninglab.inria.fr/moocrr/gitlab/e6a2acf6b1e71323e580d5754b297b60/mooc-rr/raw/9ad005b7c8da7edc39539f48ba27044d97b611c4/module3/exo1/incidence-PAY-3_1_.csv\""
"# data_url = \"https://app-learninglab.inria.fr/moocrr/gitlab/e6a2acf6b1e71323e580d5754b297b60/mooc-rr/raw/9ad005b7c8da7edc39539f48ba27044d97b611c4/module3/exo1/incidence-PAY-3_1_.csv\""
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [],
"source": [
"data_file = \"syndrome-grippal.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)"
]
},
{
...
...
@@ -61,7 +75,7 @@
},
{
"cell_type": "code",
"execution_count":
26
,
"execution_count":
41
,
"metadata": {},
"outputs": [
{
...
...
@@ -1026,13 +1040,14 @@
"[1846 rows x 10 columns]"
]
},
"execution_count":
26
,
"execution_count":
41
,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"raw_data = pd.read_csv(data_url, skiprows=1)\n",
"# raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data = pd.read_csv(data_file, skiprows=1)\n",
"raw_data"
]
},
...
...
module3/exo1/syndrome-grippal.csv
0 → 100644
View file @
48fd3f8c
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