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
6115f23799e79a0082756425c9fe750d
mooc-rr
Commits
a2785d8a
Commit
a2785d8a
authored
Nov 24, 2023
by
6115f23799e79a0082756425c9fe750d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no commit message
parent
e729f33d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+16
-4
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
a2785d8a
...
...
@@ -62,17 +62,29 @@
},
{
"cell_type": "code",
"execution_count":
18
,
"execution_count":
24
,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"fichier enregister pour la premiére fois\n"
]
}
],
"source": [
"nom_fichier = \"syndrome_gripal.csv\"\n",
"\n",
"try:\n",
"try: \n",
" #on essaye de lire le fichier local\n",
" raw_data = pd.read_csv(nom_fichier, skiprows=1)\n",
"except FileNotFoundError:\n",
" print(\"fichier chargé\")\n",
"except FileNotFoundError: \n",
" #si le fichier n'existe pas on le crée\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n",
" raw_data.to_csv(nom_fichier, index=False)\n",
" print(\"fichier enregister pour la premiére fois\")\n",
"\n",
" "
]
...
...
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