Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- df = pd.read_csv('data/RKI_COVID19.csv')
- datum = '2021/04/11'
- # Angefordertes Datum herausfiltern
- filt1 = df['Meldedatum'].str.contains(datum)
- dff1=df[filt1]
- # Ungültige Fälle aussortieren, s. https://www.arcgis.com/home/item.html?id=f10774f1c63e40168479a1feb6c7ca74
- filt2 = ((dff1['NeuerFall']==1) | (dff1['NeuerFall']==0))
- dff2 = dff1[filt2]
- # Anzahl der Neuinfktionen an angefordertem Tag berechnen
- dff2['AnzahlFall'].sum()
Add Comment
Please, Sign In to add comment