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
cbed1a3ab4c279ab7161c09cc19fe77e
mooc-rr
Commits
076fd865
Commit
076fd865
authored
Jun 12, 2020
by
cbed1a3ab4c279ab7161c09cc19fe77e
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added further comments regarding the download/loading of the data.
parent
96ac39ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+11
-2
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
076fd865
...
@@ -68,9 +68,16 @@
...
@@ -68,9 +68,16 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
3
,
"execution_count":
4
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Loaging existing data\n"
]
},
{
{
"data": {
"data": {
"text/html": [
"text/html": [
...
@@ -1095,15 +1102,17 @@
...
@@ -1095,15 +1102,17 @@
"[1845 rows x 11 columns]"
"[1845 rows x 11 columns]"
]
]
},
},
"execution_count":
3
,
"execution_count":
4
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
],
],
"source": [
"source": [
"if os.path.exists(saving_file):\n",
"if os.path.exists(saving_file):\n",
" print(\"Loaging existing data\")\n",
" raw_data = pd.read_csv(saving_file, skiprows=1)\n",
" raw_data = pd.read_csv(saving_file, skiprows=1)\n",
"else:\n",
"else:\n",
" print(\"Downloading data from url\")\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n",
" raw_data.to_csv(saving_file)\n",
" raw_data.to_csv(saving_file)\n",
"raw_data"
"raw_data"
...
...
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