bucky.util.get_historical_data
utilities to read historical data that cooresponds to a bucky output file.
add_daily_history(history_data, window_size=None)
add_daily_history
Return daily historical data from a diff of the historical cumulative data.
get_historical_data(columns, level, lookup_df, window_size, hist_file)
get_historical_data
Return historical data for requested columns.
bucky.util.get_historical_data.
covid_tracking
csse
data_locations
graph_file
hhs_hosp
vacc
history_data (pandas.DataFrame) – Cumulative case and death data
pandas.DataFrame
window_size (int or None) – Size of window in days
int
None
history_data – Historical data with added columns for daily case and death data
columns (list of str) – Column names for historical data
list
str
level (str) – Geographic level to get historical data for, e.g. adm1
lookup_df (pandas.DataFrame) – Dataframe with names and values for admin0, admin1, and admin2 levels
window_size (int) – Size of window in days
hist_file (str or None) – Historical data file to use if not using defaults.
history_data – Historical data indexed by data and geographic level containing only requested columns
bucky.util.fractional_slice
bucky.util.graph2histcsv