projects
/
python.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4f37d0
)
Update.
author
Francois Fleuret
<francois@fleuret.org>
Thu, 26 Mar 2020 10:30:09 +0000
(11:30 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Thu, 26 Mar 2020 10:30:09 +0000
(11:30 +0100)
covid19.py
patch
|
blob
|
history
diff --git
a/covid19.py
b/covid19.py
index
78c81ed
..
3d80907
100755
(executable)
--- a/
covid19.py
+++ b/
covid19.py
@@
-43,6
+43,7
@@
with open(nbcases_filename, newline='') as csvfile:
if not country in nb_cases:
nb_cases[country] = numpy.zeros(len(times))
elif col_nb >= time_col:
+ if field == '': field = '0'
nb_cases[country][col_nb - time_col] += int(field)
countries = list(nb_cases.keys())