From 15c9041cc95da64e5911f475a082099bdb27e555 Mon Sep 17 00:00:00 2001 From: Benedikt Bastin Date: Fri, 11 Jun 2021 13:54:17 +0200 Subject: [PATCH] fix: Pandas messed up date detection --- plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot.py b/plot.py index e03dfc2..156e753 100644 --- a/plot.py +++ b/plot.py @@ -73,7 +73,7 @@ def parse_rki(filename): impfungen = raw_data[:-1].dropna(subset=['Datum']).fillna(0) # Filter out rows without date in first column - impfungen['Datum'] = pd.to_datetime(impfungen['Datum'], errors='coerce') + impfungen['Datum'] = pd.to_datetime(impfungen['Datum'], errors='coerce', dayfirst=True) impfungen = impfungen[pd.notna(impfungen['Datum'])]