Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
63cd3dcada9831898781fc37053f8494
mooc-rr
Commits
f114e1a7
Commit
f114e1a7
authored
Oct 19, 2022
by
Elise N
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify `inc in valid_data`
parent
ce064575
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
analyse_syndrome_IRA.org
module3/exo1/analyse_syndrome_IRA.org
+11
-11
No files found.
module3/exo1/analyse_syndrome_IRA.org
View file @
f114e1a7
...
...
@@ -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 | 6842
2 |
|
1984-11-05 | 135223
|
|
1984-11-12 | 87330
|
|
1984-11-19 | 72029
|
|
1984-11-26 | 78620
|
|
2020-03-16 | 27306
2 |
|
2020-03-23 | 297819
|
|
2020-03-30 | 213772
|
|
2020-04-06 | 95364
|
|
2020-04-13 | 60969
|
|------------+--------|
| 2022-09-05 |
1412
0 |
| 2022-09-12 |
21395
|
| 2022-09-19 |
28781
|
| 2022-09-26 |
39902
|
| 2022-10-03 |
42543
|
| 2022-09-05 |
4345
0 |
| 2022-09-12 |
62482
|
| 2022-09-19 |
82053
|
| 2022-09-26 |
115474
|
| 2022-10-03 |
119616
|
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment