filter¶
- Tables.filter(conditional: Callable[[Table], bool]) Tables [source]¶
Filters the tables container.
- Args:
- conditional (callable, optional):
A callable that evaluates to a boolean for a given item.
- Return:
getml.pipeline.Tables
:A container of filtered tables.
- Example:
important_tables = my_pipeline.table.filter( lambda table: table.importance > 0.1) peripheral_tables = my_pipeline.tables.filter( lambda table: table.marker == "[PERIPHERAL]")