From 84098cd6dbaaed1cbb9f527e14bb3c15a646b562 Mon Sep 17 00:00:00 2001 From: e6a97489a0ddc22e539fb6d21b5fa03d Date: Fri, 6 Oct 2023 16:14:48 +0000 Subject: [PATCH] no commit message --- module3/exo1/analyse-syndrome-grippal.ipynb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module3/exo1/analyse-syndrome-grippal.ipynb b/module3/exo1/analyse-syndrome-grippal.ipynb index 59d72b5..5b77823 100644 --- a/module3/exo1/analyse-syndrome-grippal.ipynb +++ b/module3/exo1/analyse-syndrome-grippal.ipynb @@ -65,7 +65,7 @@ "metadata": {}, "outputs": [], "source": [ - "raw_data = pd.read_csv(data_url, skiprows=1)\n", + "raw_data = pd.read_csv(data_url , skiprows=1)\n", "raw_data" ] }, @@ -142,7 +142,7 @@ "source": [ "Il restent deux petites modifications à faire.\n", "\n", - "Premièrement, nous définissons les périodes d'observation\n", + "Premièrement, nous définissons les périodes d'observation\n", "comme nouvel index de notre jeux de données. Ceci en fait\n", "une suite chronologique, ce qui sera pratique par la suite.\n", "\n", @@ -184,7 +184,7 @@ "outputs": [], "source": [ "periods = sorted_data.index\n", - "for p1, p2 in zip(periods[:-1], periods[1:]):\n", + "for p1, p2 in zip(periods[:-1] , periods[1:]):\n", " delta = p2.to_timestamp() - p1.end_time\n", " if delta > pd.Timedelta('1s'):\n", " print(p1, p2)" @@ -258,7 +258,7 @@ }, "outputs": [], "source": [ - "first_august_week = [pd.Period(pd.Timestamp(y, 8, 1), 'W')\n", + "first_august_week = [pd.Period(pd.Timestamp(y, 8, 1), 'W')\n", " for y in range(1985,\n", " sorted_data.index[-1].year)]" ] @@ -335,7 +335,7 @@ "metadata": {}, "outputs": [], "source": [ - "yearly_incidence.hist(xrot=20)" + "yearly_incidence.hist(xrot=20 )" ] }, { @@ -364,7 +364,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.1" + "version": "3.6.4" } }, "nbformat": 4, -- 2.18.1