Commit f114e1a7 authored by Elise N's avatar Elise N

Modify `inc in valid_data`

parent ce064575
...@@ -142,7 +142,7 @@ transformons les incidences en nombres entiers. ...@@ -142,7 +142,7 @@ transformons les incidences en nombres entiers.
import datetime import datetime
converted_data = [(datetime.datetime.strptime(year_and_week + ":1" , '%G%V:%u').date(), converted_data = [(datetime.datetime.strptime(year_and_week + ":1" , '%G%V:%u').date(),
int(inc)) 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]) converted_data.sort(key = lambda record: record[0])
#+END_SRC #+END_SRC
...@@ -154,14 +154,14 @@ str_data = [(str(date), str(inc)) for date, inc in converted_data] ...@@ -154,14 +154,14 @@ str_data = [(str(date), str(inc)) for date, inc in converted_data]
#+RESULTS: #+RESULTS:
| date | inc | | date | inc |
|------------+--------| |------------+--------|
| 1984-10-29 | 68422 | | 2020-03-16 | 273062 |
| 1984-11-05 | 135223 | | 2020-03-23 | 297819 |
| 1984-11-12 | 87330 | | 2020-03-30 | 213772 |
| 1984-11-19 | 72029 | | 2020-04-06 | 95364 |
| 1984-11-26 | 78620 | | 2020-04-13 | 60969 |
|------------+--------| |------------+--------|
| 2022-09-05 | 14120 | | 2022-09-05 | 43450 |
| 2022-09-12 | 21395 | | 2022-09-12 | 62482 |
| 2022-09-19 | 28781 | | 2022-09-19 | 82053 |
| 2022-09-26 | 39902 | | 2022-09-26 | 115474 |
| 2022-10-03 | 42543 | | 2022-10-03 | 119616 |
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