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
32f4bf506e1520a72648c3586598851b
mooc-rr
Commits
1528d0a0
Commit
1528d0a0
authored
Apr 20, 2020
by
32f4bf506e1520a72648c3586598851b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exercide 3 (1re partie)_1er essai
parent
270d9a5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+28
-2
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
1528d0a0
...
...
@@ -16,7 +16,8 @@
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import isoweek"
"import isoweek\n",
"import os"
]
},
{
...
...
@@ -69,6 +70,31 @@
"raw_data"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Je fais un fichier de sauvegarde des données"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"output_name = \"Sauvegarde_donnees_syndrome_grippal\"\n",
"output_file = os.path(output_name+'.csv')\n",
"if output_file.exists ():\n",
" print(\"output file exists already\")\n",
" raw_data = pd.read_csv(output_file)\n",
"else:\n",
" print(\"output file created\")\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n",
" raw_data.to_csv(output_name+'.csv')\n",
"raw_data"
]
},
{
"cell_type": "markdown",
"metadata": {},
...
...
@@ -364,7 +390,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.
1
"
"version": "3.6.
4
"
}
},
"nbformat": 4,
...
...
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