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
ef1d331e1cf47607d5b91843ecc46a5e
mooc-rr
Commits
7f077e40
Commit
7f077e40
authored
Oct 22, 2024
by
ef1d331e1cf47607d5b91843ecc46a5e
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected data loading
parent
48169e6b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2103 additions
and
7 deletions
+2103
-7
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+16
-7
incidence-PAY-3.csv
module3/exo1/incidence-PAY-3.csv
+2087
-0
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
7f077e40
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
2
,
"execution_count":
15
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -28,9 +28,17 @@
...
@@ -28,9 +28,17 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
5
,
"execution_count":
16
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Données déjà présentes sur le disque, chargement...\n"
]
}
],
"source": [
"source": [
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
"\n",
"\n",
...
@@ -38,8 +46,9 @@
...
@@ -38,8 +46,9 @@
"\n",
"\n",
"try:\n",
"try:\n",
" data = pd.read_csv(data_path)\n",
" data = pd.read_csv(data_path)\n",
"except OSError as e:\n",
" print(\"Données déjà présentes sur le disque, chargement...\")\n",
" if e == FileNotFoundError:\n",
"except FileNotFoundError as e:\n",
" print(\"Données non présentes, téléchargement...\")\n",
" data = pd.read_csv(data_url)\n",
" data = pd.read_csv(data_url)\n",
" data.to_csv(data_path)"
" data.to_csv(data_path)"
]
]
...
...
module3/exo1/incidence-PAY-3.csv
0 → 100644
View file @
7f077e40
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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