data_utils

Submodules

Functions

Summary

calc_country_total

Calculates the total for each country from the covid_df, where only data for regions was present before

calc_worldwide_total

Calculates the worldwide total.

get_daily_growth

Calculates the daily growth values

get_data_path

Returns the Path object of a path in data and creates the parent folders if they don’t exist already

get_fit_param_results_row

Returns a row containing all fitted parameters for a region, which can than be combined to a fit param results dataframe

get_growth_rate

Calculates the growth rate values

get_infectious

Calculates the number of still infectious people.

get_shifted_dfs

Helper function to shift the date of the covid data by a given time and gain DataFrames which can be used to calculate the growth and growth rate.

params_to_df

Returns a DataFrame with the values and stderr of the params

params_to_dict

Converts fit result parameters to a dict

translate_funkeinteraktiv_fit_data

Helperfunction to prevent Fitting overhead, which would be caused if the same dataset with de and en region names would be fitted.