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
Meiling WU
mooc-rr
Commits
d0d53a02
Commit
d0d53a02
authored
Jun 07, 2022
by
7c464d3f75d36d59ec46a9a19f550f91
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: Problem and error message with exercise 3.2
parent
6dd12c9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
1 deletion
+30
-1
exercice.ipynb
module2/exo4/exercice.ipynb
+30
-1
No files found.
module2/exo4/exercice.ipynb
View file @
d0d53a02
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
"cells": [
"cells": [
{
{
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {},
"metadata": {
"hideCode": false,
"hidePrompt": false
},
"source": [
"source": [
"# Useful links\n",
"# Useful links\n",
"\n",
"\n",
...
@@ -17,6 +20,31 @@
...
@@ -17,6 +20,31 @@
" - for histogram plots [take this](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.hist.html)"
" - for histogram plots [take this](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.hist.html)"
]
]
},
},
{
"cell_type": "markdown",
"metadata": {
"hideCode": false,
"hidePrompt": false
},
"source": [
"Exercise 3.2: had a weird error message when trying to execute the evaluation part:\n",
"\n",
"```\n",
"---------------------------------------------------------------------------\n",
"AssertionError Traceback (most recent call last)\n",
"<ipython-input-12-537d91e19818> in <module>\n",
" 4 first_september_week[1:]):\n",
" 5 one_year = sorted_data['inc'][week1:week2-1]\n",
"----> 6 assert abs(len(one_year)-52) < 2\n",
" 7 yearly_incidence.append(one_year.sum())\n",
" 8 year.append(week2.year)\n",
"\n",
"AssertionError: \n",
"```\n",
"\n",
"worked on it together with Eva diaz, trying to figure out what the problem was, but couldn't find any solution... "
]
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": null,
...
@@ -26,6 +54,7 @@
...
@@ -26,6 +54,7 @@
}
}
],
],
"metadata": {
"metadata": {
"hide_code_all_hidden": false,
"kernelspec": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3",
"language": "python",
"language": "python",
...
...
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