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
c356ed33d414d53760b5d8b0a508adc0
mooc-rr
Commits
206c14b3
Commit
206c14b3
authored
Mar 12, 2021
by
c356ed33d414d53760b5d8b0a508adc0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Module 3, exo 1: télécharge si pas présetn
parent
87a21bbe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+16
-10
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
206c14b3
...
@@ -32,8 +32,7 @@
...
@@ -32,8 +32,7 @@
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
"filename = 'incidence-PAY-3.csv'\n",
"filename = 'incidence-PAY-3.csv'"
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\""
]
]
},
},
{
{
...
@@ -60,8 +59,10 @@
...
@@ -60,8 +59,10 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 3,
"execution_count": 16,
"metadata": {},
"metadata": {
"scrolled": false
},
"outputs": [
"outputs": [
{
{
"data": {
"data": {
...
@@ -1025,13 +1026,18 @@
...
@@ -1025,13 +1026,18 @@
"[1897 rows x 10 columns]"
"[1897 rows x 10 columns]"
]
]
},
},
"execution_count":
3
,
"execution_count":
16
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
],
],
"source": [
"source": [
"raw_data = pd.read_csv(filename, skiprows=1)\n",
"# Si le fichier de données n'est pas présent, il sera téléchargé depuis le serveur.\n",
"try:\n",
" raw_data = pd.read_csv(filename, skiprows=1)\n",
"except FileNotFoundError:\n",
" !wget \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
" raw_data = pd.read_csv(filename, skiprows=1)\n",
"raw_data"
"raw_data"
]
]
},
},
...
@@ -2208,7 +2214,7 @@
...
@@ -2208,7 +2214,7 @@
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
f623d59b0
0>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
c07d18339
0>"
]
]
},
},
"execution_count": 9,
"execution_count": 9,
...
@@ -2247,7 +2253,7 @@
...
@@ -2247,7 +2253,7 @@
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
f621bb39b0
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
c07c7044a8
>"
]
]
},
},
"execution_count": 10,
"execution_count": 10,
...
@@ -2351,7 +2357,7 @@
...
@@ -2351,7 +2357,7 @@
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
f621b4d390
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
c07c69f438
>"
]
]
},
},
"execution_count": 13,
"execution_count": 13,
...
@@ -2453,7 +2459,7 @@
...
@@ -2453,7 +2459,7 @@
{
{
"data": {
"data": {
"text/plain": [
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
f621b2a0f
0>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f
c07c67db7
0>"
]
]
},
},
"execution_count": 15,
"execution_count": 15,
...
...
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