Skip to main content
For columns containing dates, numbers or lists of numbers, values from inside a list are removed, nullifying the list itself when becoming empty.

Usage

The following example shows how the step can be used in a recipe.

Examples

  • Example 1
  • Signature
Replace values outside of range [rangeLeft, rangeRight) with nulls:
extract_range(col_in, {"rangeLeft": 200, "rangeRight": 800}) -> (col_out)

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").
col_in
column[date|number|list[number]]
required
A column to extract the range from.
col_out
column
required

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

rangeLeft
[number, string]
required
Inclusive left boundary of the selection’s range.
  • 200
  • -0.7
  • 2021-05-07T13:17:53Z
rangeRight
[number, string]
required
Exclusive right boundary of the selection’s range.
  • 800
  • -0.2
  • 2022-07-07T12:15:03Z
I