ColumnFilter
- class cocohelper.filters.filter.ColumnFilter[source]
Bases:
Filter
,ABC
Generic interface of a filter applying constraints over column values.
- Parameters:
values – values used to create the constraint and filter the rows.
column – column where the constraint are applied to filter the rows.
Method List
_apply
(values, column, df)Applies the filter to the given DataFrame rows.
apply
(df)Apply the filter to the DataFrame
Attributes List
Methods Details
- abstract _apply(values, column, df)[source]
Applies the filter to the given DataFrame rows.
- Parameters:
values – values to filter in the DataFrame.
column (str) – column to filter in the DataFrame.
df (DataFrame) – DataFrame to filter.
- Returns:
The filtered DataFrame.
- Return type:
DataFrame
- apply(df)[source]
Apply the filter to the DataFrame
- Parameters:
df (DataFrame) – DataFrame to filter
- Returns:
The filtered DataFrame.
- Return type:
DataFrame
Attribute Details
- _abc_impl = <_abc._abc_data object>