Skip to content

Commit

Permalink
Update fill_missing.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dwolffram authored Nov 5, 2024
1 parent 4f01cc3 commit cd9521a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/fill_missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,10 @@ def process_data(df):
print(f"To fill {d.strftime('%Y-%m-%d')} we use {fill_date.strftime('%Y-%m-%d')}.")

# file we use to fill missing date
filename = df_files[df_files.date == fill_date].filename.values[0]
filename = df_files[df_files.date == fill_date].raw_url.values[0]

# load and reformat file
df = pd.read_csv('https://github.com/robert-koch-institut/COVID-19-Hospitalisierungen_in_Deutschland/raw/master/' +
filename)
df = pd.read_csv(filename)
df = process_data(df)

# cut dataframe
Expand Down

0 comments on commit cd9521a

Please sign in to comment.