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
72e29cccd0b979082d9150c03dedf743
mooc-rr
Commits
4e03d867
Commit
4e03d867
authored
Nov 23, 2022
by
72e29cccd0b979082d9150c03dedf743
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
k
parent
9e5cce13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+17
-3
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
4e03d867
...
...
@@ -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"
]
},
{
...
...
@@ -65,7 +66,20 @@
"metadata": {},
"outputs": [],
"source": [
"raw_data = pd.read_csv(data_url, skiprows=1)\n",
"local_path_data = \"blabla\""
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"if os.path.exists(local_path_data):\n",
" raw_data = pd.read_csv(local_path_data, skiprows=1)\n",
"else:\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n",
" raw_data.to_csv(local_path_data, index=False)\n",
"raw_data"
]
},
...
...
@@ -364,7 +378,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