fix: Pandas messed up date detection
This commit is contained in:
parent
4ba4239a71
commit
15c9041cc9
1 changed files with 1 additions and 1 deletions
2
plot.py
2
plot.py
|
@ -73,7 +73,7 @@ def parse_rki(filename):
|
||||||
impfungen = raw_data[:-1].dropna(subset=['Datum']).fillna(0)
|
impfungen = raw_data[:-1].dropna(subset=['Datum']).fillna(0)
|
||||||
|
|
||||||
# Filter out rows without date in first column
|
# 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'])]
|
impfungen = impfungen[pd.notna(impfungen['Datum'])]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue