utilities package

Modules

utilities.df_plots module

utilities.df_plots.ewt_violin(df)

cut and paste – untested

Parameters:

df

Returns:

utilities.df_processing module

Dataframe processing functions

utilities.df_processing.determine_mode(row)
Parameters:

row – a row in a pandas DataFrame

Returns:

Two new columns in the DataFrame, one that identifies when heat pump is heating the other when heat pump is cooling

utilities.df_processing.lag_temps(data)

utilities.misc_functions module

Created on Wed Aug 23 11:40:50 2017

@author: gxdata

miscellaneous functions that may be needed from several unh_modules

utilities.misc_functions.C_to_F(C)
utilities.misc_functions.F_to_C(F)

utilities.save_responses_as_csv module

utilities.save_responses_as_csv.get_wr_as_dataframe(installation_id, start, end, columns)
utilities.save_responses_as_csv.save_responses_csv()

utilities.get_measurement_spec module

Finds the dictionary for the measurement specification based on the name of the measurement.

utilities.get_measurement_spec.find_measurement_spec(monitoring_system_specs, measurement_type)

Scans the list of specs and returns dictionary of specifications for the named measurement type

Parameters:
  • monitoring_system_specs (list) – The list of all measurement specs for a monitoring system

  • measurement_type (str) – The name of the measurement type to be located

Returns:

measurement specifications

Return type:

dict