X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=python.git;a=blobdiff_plain;f=covid19.py;h=3d8090744c2756aa831003d3fc10852d2bf516bc;hp=78c81ed4dc5b88674f6d1ac3d148744b944bfbc6;hb=b55010b86eeb295895fc03cff5cbd41948e845ee;hpb=f4f37d0dea3aeee7fa80a89fb9c75fc85034570a 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())