diff --git a/module3/exo1/analyse_syndrome_IRA.org b/module3/exo1/analyse_syndrome_IRA.org index 2127f3762f85c5cf97b938c2c01a5af07c05a12c..e3a803410fe86b8196f6f9fcb6e0de6c1aee8574 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 |