Skip to content

Filter rows

Filter rows using graphext's advanced query syntax (similar to Elasticsearch).

Usage


The following are the step's expected inputs and outputs and their specific types.

Step signature
filter_rows(ds_in: dataset, {"param": value}) -> (ds_out: dataset)

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.

Example

This simple query creates a new dataset only including those rows where the 'age' columns is greater than 18:

Example call (in recipe editor)
filter_rows(ds, {"query": "age: >18"} -> (dsf)

Inputs


ds_in: dataset

An input dataset to filter.

Outputs


ds_out: dataset

A dataset containing the same columns as the input dataset but without the filtered rows.

Parameters


query: string

The graphext advanced query used to identify the rows to keep.