class load_data(datafile, calculate=True, check_date=True, verbose=True, start_day=None, **kwargs)[source]#

Load data for comparing to the model output, either from file or from a dataframe.

  • datafile (str or df) – if a string, the name of the file to load (either Excel or CSV); if a dataframe, use directly

  • calculate (bool) – whether to calculate cumulative values from daily counts

  • check_date (bool) – whether to check that a ‘date’ column is present

  • start_day (date) – if the ‘date’ column is provided as integer number of days, consider them relative to this

  • kwargs (dict) – passed to pd.read_excel()


pandas dataframe of the loaded data

Return type:

data (dataframe)