filter¶
- Columns.filter(conditional: Callable[[Column], bool]) Columns [source]¶
Filters the columns container.
- Args:
- conditional (callable, optional):
A callable that evaluates to a boolean for a given item.
- Return:
getml.pipeline.Column
:A container of filtered Columns.
- Example:
important_columns = my_pipeline.columns.filter(lambda column: column.importance > 0.1) peripheral_columns = my_pipeline.columns.filter(lambda column: column.marker == "[PERIPHERAL]")