Update: Problem and error message with exercise 3.2

parent 6dd12c9a
......@@ -2,7 +2,10 @@
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"hideCode": false,
"hidePrompt": false
},
"source": [
"# Useful links\n",
"\n",
......@@ -17,6 +20,31 @@
" - 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",
"execution_count": null,
......@@ -26,6 +54,7 @@
}
],
"metadata": {
"hide_code_all_hidden": false,
"kernelspec": {
"display_name": "Python 3",
"language": "python",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment