Filter

The filter transform removes rows based on a predicate expression.

Parameters

expr Required
An expression string. The row is removed if the expression evaluates to false.

Example

{
  "type": "filter",
  "expr": "datum.p <= 0.05"
}

The example above retains all rows for which the field p is less than or equal to 0.05.