Usage
The following examples show how the step can be used in a recipe.Examples
Examples
- Example 1
- Example 2
- Signature
The following example creates a new dataset including only those rows whose satisfaction_level is between 0.6 and 0.9 (inclusive).
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 condition.
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
Name of the column to apply the filter to.
If
true
, values within the specified range will be excluded from the resulting dataset.Maximum value in the selected column to pass the filter (to be included).
Either this or the
min
parameter must be specified.Minimum value in the selected column to pass the filter (to be included).
Either this or the
max
parameter must be specified.