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
698345a05907085e6f4a3b394d423bd9
mooc-rr
Commits
ab46ae7b
Commit
ab46ae7b
authored
May 22, 2025
by
698345a05907085e6f4a3b394d423bd9
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
affichageMessage
parent
103c7108
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+16
-9
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
ab46ae7b
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
8
,
"execution_count":
12
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -28,18 +28,25 @@
...
@@ -28,18 +28,25 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
0
,
"execution_count": 1
3
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Fichier local trouvé, pas de téléchargement nécessaire.\n"
]
}
],
"source": [
"source": [
"local_file = \"donnees_syndrome_grippal.csv\"\n",
"import os\n",
"import urllib.request\n",
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
"local_file = \"donnees_syndrome_grippal.csv\"\n",
"if not os.path.exists(local_file):\n",
"if not os.path.exists(local_file):\n",
" print(\"Téléchargement des données depuis l’URL...\")\n",
" urllib.request.urlretrieve(data_url, local_file)\n",
" urllib.request.urlretrieve(data_url, local_file)\n",
"else:\n",
"else:\n",
"
raw_data = pd.read_csv(local_file, skiprows=1
)\n",
"
print(\"Fichier local trouvé, pas de téléchargement nécessaire.\"
)\n",
"\n"
"\n"
]
]
},
},
...
@@ -67,7 +74,7 @@
...
@@ -67,7 +74,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
1
,
"execution_count": 1
4
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -1032,7 +1039,7 @@
...
@@ -1032,7 +1039,7 @@
"[2116 rows x 10 columns]"
"[2116 rows x 10 columns]"
]
]
},
},
"execution_count": 1
1
,
"execution_count": 1
4
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
...
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