From: Francois Fleuret Date: Thu, 26 Mar 2020 10:30:09 +0000 (+0100) Subject: Update. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=b55010b86eeb295895fc03cff5cbd41948e845ee;p=python.git Update. --- diff --git a/covid19.py b/covid19.py index 78c81ed..3d80907 100755 --- 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())