sensortoolkit.deploy._get_max_conc.get_max_conc

get_max_conc(param, df_list=None, ref_df=None, bdate=None, edate=None)[source]

Determine maximum concentration measured across passed dataframes.

If both sensor dataframes are passed to df_list and a reference dataframe is passed to ref_df, the maximum will be computed across both sensor and reference concentrations.

Parameters
  • param (str) – The name of the evaluation parameter.

  • df_list (list of pandas dataframes, optional) – A list of sensor dataframes. Defaults to None.

  • ref_df (pandas dataframe, optional) – Reference dataframe. Defaults to None. If dataframe passed, will be considered in calculation of maximum concentration.

  • bdate (str, optional) – The starting timestamp to begin search. Defaults to None, will use the earliest timestamp recorded in datasets.

  • edate (str, optional) – The ending timestamp to end search. Defaults to None, will use the latest timestamp recorded in datasets.

Returns

The maximum concentration indicated by the dataframes passed to the function for the specified parameter.

Return type

max_conc (float)

Raises

TypeError – If df_list and ref_df are both None (i.e., no dataframes passed to function).