From f114e1a79e8b49ae4596104eea4e1352b22202f5 Mon Sep 17 00:00:00 2001 From: Elise N <44583028+elisencode@users.noreply.github.com> Date: Wed, 19 Oct 2022 12:00:44 +0200 Subject: [PATCH] Modify `inc in valid_data` --- module3/exo1/analyse_syndrome_IRA.org | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/module3/exo1/analyse_syndrome_IRA.org b/module3/exo1/analyse_syndrome_IRA.org index 2127f37..e3a8034 100644 --- a/module3/exo1/analyse_syndrome_IRA.org +++ b/module3/exo1/analyse_syndrome_IRA.org @@ -142,7 +142,7 @@ transformons les incidences en nombres entiers. import datetime converted_data = [(datetime.datetime.strptime(year_and_week + ":1" , '%G%V:%u').date(), int(inc)) - for year_and_week, inc in data] + for year_and_week, inc in valid_data] converted_data.sort(key = lambda record: record[0]) #+END_SRC @@ -154,14 +154,14 @@ str_data = [(str(date), str(inc)) for date, inc in converted_data] #+RESULTS: | date | inc | |------------+--------| -| 1984-10-29 | 68422 | -| 1984-11-05 | 135223 | -| 1984-11-12 | 87330 | -| 1984-11-19 | 72029 | -| 1984-11-26 | 78620 | +| 2020-03-16 | 273062 | +| 2020-03-23 | 297819 | +| 2020-03-30 | 213772 | +| 2020-04-06 | 95364 | +| 2020-04-13 | 60969 | |------------+--------| -| 2022-09-05 | 14120 | -| 2022-09-12 | 21395 | -| 2022-09-19 | 28781 | -| 2022-09-26 | 39902 | -| 2022-10-03 | 42543 | +| 2022-09-05 | 43450 | +| 2022-09-12 | 62482 | +| 2022-09-19 | 82053 | +| 2022-09-26 | 115474 | +| 2022-10-03 | 119616 | -- 2.18.1