Update.
authorFrancois Fleuret <francois@fleuret.org>
Thu, 26 Mar 2020 10:30:09 +0000 (11:30 +0100)
committerFrancois Fleuret <francois@fleuret.org>
Thu, 26 Mar 2020 10:30:09 +0000 (11:30 +0100)
covid19.py

index 78c81ed..3d80907 100755 (executable)
@@ -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())