captest.capdata.CapData.filter_power
- CapData.filter_power(power, percent=None, columns=None, inplace=True)
Remove data above the specified power threshold.
- Parameters:
power (numeric) – If percent is none, all data equal to or greater than power is removed. If percent is not None, then power should be the nameplate power.
percent (None, or numeric, default None) – Data greater than or equal to percent of power is removed. Specify percentage as decimal i.e. 1% is passed as 0.01.
columns (None or str, default None) – By default filter is applied to the power data identified in the regression_cols attribute. Pass a column name or column group to filter on. When passing a column group the power filter is applied to each column in the group.
inplace (bool, default True) – Default of true writes filtered dataframe back to data_filtered attribute.
- Return type:
Dataframe when inplace is false.