Skip to main content

Filter rows

Keep (or remove) the rows that meet one or more conditions on their columns, and keep only the columns you need.

Command in the Data Table toolkit · id ooa.datatable/filter · 9 inputs (3 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
TableTableYesSource table.
ColumnStringYesColumn name.
OperatorStringYesComparison; matches takes a regular expression.
ValueAnyNoValue to compare with (not needed for empty/not_empty).
Match caseBooleanNofalseCompare text with upper/lower case taken into account.
More conditionsListNoMore conditions, each a column, a comparison and a value (column, operator, value, match_case).
MatchStringNoallWith more conditions: a row must meet all of them, or any one.
KeepStringNomatchingKeep the rows that meet the conditions, or remove them and keep the rest.
ColumnsListNoOnly these columns in the result, in this order; all of them when empty.

Outputs​

OutputTypeWhat it is
tableTableFiltered table.
countNumberRows kept.