Filter clients aged 18 who earn more than 50 dollars monthly on average.
filter_rows(ds, {"query": "(age: 18) AND ('avg monthly income':>50)"}) -> (ds_out)
Filter fire dates in 2020.
filter_rows(ds, {"query": "'Fire Date': >=2020-01-01 AND <=2020-12-31"}) -> (ds_out)
Select rows where the text column contains both “he” and “she”.
filter_rows(ds, {"query": "text: he AND she"}) -> (ds_out)
Filter rows where ‘Average Monthly Hours’ is greater than 5 and less than 7.
filter_rows(ds, {"query": "'Average Monthly Hours':>5 AND <7"}) -> (ds_out)
General syntax for using the step in a recipe. Shows the inputs and outputs the step is expected to receive and will produce respectively. For futher details see sections below.
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").
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).