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
93bddc7315f700347e10fb4afd2d4053
mooc-rr
Commits
4041c3d4
Commit
4041c3d4
authored
May 06, 2020
by
93bddc7315f700347e10fb4afd2d4053
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bloc try and except
parent
458f16a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+11
-5
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
4041c3d4
...
...
@@ -1046,7 +1046,13 @@
}
],
"source": [
"raw_data = pd.read_csv(data_2, skiprows=1)\n",
"try:\n",
" raw_data = pd.read_csv(data_2, skiprows=1)\n",
"except:\n",
" try:\n",
" raw_data = pd.read_csv(data_url, skiprows=1)\n",
" except:\n",
" print(\"Error : the file doesn't exist\")\n",
"raw_data"
]
},
...
...
@@ -2223,7 +2229,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f3
7bcca7
748>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f3
56d713
748>"
]
},
"execution_count": 10,
...
...
@@ -2262,7 +2268,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f3
7baa82518
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f3
56b550be0
>"
]
},
"execution_count": 11,
...
...
@@ -2366,7 +2372,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f3
7ba987978
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f3
56b45d1d0
>"
]
},
"execution_count": 14,
...
...
@@ -2467,7 +2473,7 @@
{
"data": {
"text/plain": [
"<matplotlib.axes._subplots.AxesSubplot at 0x7f3
7ba96b390
>"
"<matplotlib.axes._subplots.AxesSubplot at 0x7f3
56b43af98
>"
]
},
"execution_count": 16,
...
...
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