From 39993742c991bdefbbd8b7e9ba8dc332f45f5488 Mon Sep 17 00:00:00 2001 From: Benedikt Bastin Date: Thu, 4 Feb 2021 17:30:40 +0100 Subject: [PATCH] fix: Drop last row with totals in new RKI format --- plot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plot.py b/plot.py index 09ea1cf..98526fc 100644 --- a/plot.py +++ b/plot.py @@ -49,6 +49,8 @@ raw_data = rki_file['Impfungen_proTag'] impfungen = raw_data[:-1].dropna(subset=['Datum'])#.fillna(0) +impfungen.drop(impfungen.tail(1).index,inplace=True) # remove Gesamt row + dates = impfungen['Datum'] start_of_reporting_date = dates.iloc[0].date()