X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=enhance_table.py;h=acbebc6b950905cab22a247a42010b69a15c166a;hb=5ece867536877574b33064933504740484e08797;hp=02a7ac9b30b8cd0375a79a49468e2dc5c19e3d77;hpb=a3d2a6533cb6aee29c48c8e1e08e4981c0c8829b;p=berlin-corona-table diff --git a/enhance_table.py b/enhance_table.py index 02a7ac9..acbebc6 100755 --- a/enhance_table.py +++ b/enhance_table.py @@ -17,6 +17,23 @@ district_pops = { 'sum': 3754418, } +# Map abbreviations to full names. +translate = { + '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': 'all of Berlin', +} + # Read infections table path and output type. import sys if len(sys.argv) != 3: @@ -119,7 +136,9 @@ if output_type == 'html': print('