Ciaren

Filter rows

Filter rows — filterRows

Keep rows matching a condition.

Use cases

  • Keep only positive amounts, a date range, or a set of categories.
  • Drop rows where a key column is null (isnull/notnull).
  • Text matching: contains, startswith, endswith.

What it does

Rows that match the condition are kept; everything else is dropped. The number of columns does not change.

Before
order_idregionamount
1001North120.5
1002South-5
1003North89
1004South0
4 rows · 3 cols
Filter rows (amount > 0)
After
order_idregionamount
1001North120.5
1003North89
2 rows · 3 cols

Configuration

Config keyTypeRequiredDescription
columnstringYesColumn to test
operatorstringYesSee operators below
valueanyConditionalRequired except for isnull / notnull
value2anyConditionalUpper bound, required for between

Operators: ==, !=, >, >=, <, <=, isnull, notnull, between (needs value2), in (comma-separated or a list), contains, startswith, endswith.

Numeric columns accept numeric values; text columns accept strings — the editor keeps the value type aligned to the column.

Generated Python code

df_2 = df_1.loc[lambda _d: _d['amount'] > 0]

Tips & common mistakes

  • between needs an upper bound (value2); the form blocks saving without it. It's inclusive on both ends.
  • in takes a comma-separated list (x, z) or an actual list.
  • For multi-condition AND/OR logic that produces a label (not just a filter), use Conditional column.

See also