X-Git-Url: https://plomlompom.com/repos/?p=berlin-corona-table;a=blobdiff_plain;f=enhance_table.py;h=a626329bcd20236477e60b8bd80b93c38274bcaa;hp=3860ea61b4cc74409718a59b268689043c787d88;hb=078d5207c9a6d7ad4611df311a5e11a635f6f30f;hpb=75dacaa30b7a267720323ec5b4793d716c461545 diff --git a/enhance_table.py b/enhance_table.py index 3860ea6..a626329 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -72,6 +72,33 @@ for i in range(len(sorted_dates)): db[district][date]['week_average'] = week_sum / 7 db[district][date]['week_incidence'] = (week_sum / district_pop) * 100000 +# Explain what this is. +intro = """ +Table of Berlin's Corona infection number development by districts, daily +updated around 9pm. + +Abbrevations/explanations: +CW: Charlottenburg-Wilmersdorf +FK: Friedrichshain-Kreuzberg +Li: Lichtenberg +MH: Marzahn-Hellersdorf +Mi: Mitte +Ne: Neukölln +Pa: Pankow +Re: Reinickendorf +Sp: Spandau +SZ: Steglitz-Zehlendorf +TS: Tempelhof-Schöneberg +TK: Treptow-Köpenick +sum: sum for all the districts +wsum: sum for last 7 days +wavg: per-day average of new infections for last 7 days +winc: incidence (x per 100k inhabitants) of new infections for last 7 days + +Source code: https://plomlompom.com/repos/?p=berlin-corona-table +""" +print(intro) + # Output table of enhanced daily infection data, newest on top, separated into # 7-day units. sorted_dates.reverse()