captest.capdata.CapData.agg_sensors
- CapData.agg_sensors(agg_map=None, verbose=False)
Aggregate measurments of the same variable from different sensors.
- Parameters:
agg_map (dict, default None) – Dictionary specifying aggregations to be performed on the specified groups from the column_groups attribute. The dictionary keys should be keys from the column_gruops attribute. The dictionary values should be aggregation functions. See pandas API documentation of Computations / descriptive statistics for a list of all options. By default the groups of columns assigned to the ‘power’, ‘poa’, ‘t_amb’, and ‘w_vel’ keys in the regression_cols attribute are aggregated: - sum power - mean of poa, t_amb, w_vel
verbose (bool, default False) – Set to True to print the columns that have been aggregated, the aggregation function used, and the new column name. If the group being aggregated has more than 10 columns, only the group name will be printed.
- Returns:
Acts in place on the data, data_filtered, and regression_cols attributes.
- Return type:
None
Notes
This method is intended to be used before any filtering methods are applied. Filtering steps applied when this method is used will be lost.
This method modifies the data, data_filtered, and regression_cols attributes.