From d0d53a020e50fe4cb7c193d65e214b344433665a Mon Sep 17 00:00:00 2001 From: 7c464d3f75d36d59ec46a9a19f550f91 <7c464d3f75d36d59ec46a9a19f550f91@app-learninglab.inria.fr> Date: Tue, 7 Jun 2022 15:49:06 +0000 Subject: [PATCH] Update: Problem and error message with exercise 3.2 --- module2/exo4/exercice.ipynb | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/module2/exo4/exercice.ipynb b/module2/exo4/exercice.ipynb index 93e4069..1254812 100644 --- a/module2/exo4/exercice.ipynb +++ b/module2/exo4/exercice.ipynb @@ -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", + " in \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", -- 2.18.1