Usage
The following examples show how the step can be used in a recipe.Examples
Examples
The first example keeps those rows where the “salary” column is either “low” or “high”:
Inputs & Outputs
The following are the inputs expected by the step and the outputs it produces. These are generally columns (ds.first_name
), datasets (ds
or ds[["first_name", "last_name"]]
) or models (referenced
by name e.g. "churn-clf"
).
Inputs
Inputs
An input dataset to filter.
Outputs
Outputs
A new dataset containing the same columns as the input dataset but only those rows passing the filter query.
Configuration
The following parameters can be used to configure the behaviour of the step by including them in a json object as the last “input” to the step, i.e.step(..., {"param": "value", ...}) -> (output)
.
Parameters
Parameters
A formula describing the matching operation to perform on each row.
Examples
Examples
salary == 'low' or salary == 'high'
number_project >= 3 and number_project <= 4