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
5212fa3d0a7441c34b57f854081c7450
mooc-rr
Commits
9964083a
Commit
9964083a
authored
Feb 02, 2025
by
5212fa3d0a7441c34b57f854081c7450
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update analyse-syndrome-grippal.ipynb
parent
c2cad0b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+11
-1
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
9964083a
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
"import matplotlib.pyplot as plt\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import pandas as pd\n",
"import isoweek"
"import isoweek"
"import os"
"import requests"
]
]
},
},
{
{
...
@@ -1038,7 +1040,7 @@
...
@@ -1038,7 +1040,7 @@
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {},
"metadata": {},
"source": [
"source": [
"Modification du code pour
utiliser le fichier local contenant les donnée
s :"
"Modification du code pour
vérifier si une copie locale des données existe et pour les télécharger si elles n'existent pa
s :"
]
]
},
},
{
{
...
@@ -1068,6 +1070,14 @@
...
@@ -1068,6 +1070,14 @@
}
}
],
],
"source": [
"source": [
"file_path = "https://app-learninglab.inria.fr/moocrr/gitlab/5212fa3d0a7441c34b57f854081c7450/mooc-rr/blob/master/module3/exo1/inc-25-PAY.csv" \n",
"if not os.path.exists(file_path):\n",
"response = requests.get(data_url)\n",
"with open(file_path, "wb") as file:\n",
" file.write(response.content)\n",
"print("Téléchargement des données et sauvegarde locale.")\n",
"else:\n",
" print("Données locales déjà existantes.")\n",
"raw_data = pd.read_csv('https://app-learninglab.inria.fr/moocrr/gitlab/5212fa3d0a7441c34b57f854081c7450/mooc-rr/blob/master/module3/exo1/inc-25-PAY.csv', encoding = 'iso-8859-1', skiprows=1)\n",
"raw_data = pd.read_csv('https://app-learninglab.inria.fr/moocrr/gitlab/5212fa3d0a7441c34b57f854081c7450/mooc-rr/blob/master/module3/exo1/inc-25-PAY.csv', encoding = 'iso-8859-1', skiprows=1)\n",
"raw_data"
"raw_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