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
39b43c6fa846848b4cab4d896f6c8764
mooc-rr
Commits
3b9851f2
Commit
3b9851f2
authored
Aug 12, 2020
by
39b43c6fa846848b4cab4d896f6c8764
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Module 3 - Exo 1
parent
2bd12eef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+15
-11
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
3b9851f2
...
...
@@ -9,14 +9,15 @@
},
{
"cell_type": "code",
"execution_count":
null
,
"execution_count":
1
,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import isoweek"
"import isoweek\n",
"import os.path"
]
},
{
...
...
@@ -28,10 +29,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\""
...
...
@@ -61,12 +60,17 @@
},
{
"cell_type": "code",
"execution_count":
null
,
"execution_count":
4
,
"metadata": {},
"outputs": [],
"source": [
"raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data"
"from pathlib import Path\n",
"my_file = Path(\"data_file.csv\")\n",
"if my_file.exists():\n",
" raw_data = pd.read_csv(my_file, skiprows=1)\n",
"else:\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n",
" raw_data.to_csv(\"data_file.csv\")"
]
},
{
...
...
@@ -364,9 +368,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.
1
"
"version": "3.6.
4
"
}
},
"nbformat": 4,
"nbformat_minor": 1
}
}
\ No newline at end of file
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