Skip to main content

Usage

The following examples show how the step can be used in a recipe.

Examples

  • Example 1
  • Example 2
  • Example 3
  • Example 4
  • Example 5
  • Example 6
  • Signature
This simple query creates a new segmentation differentiating between adults and minors:
segment_rows(ds, {"adult": "age: >=18", "minor": "age: <18"}) -> (ds.segmentation)

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").
ds_in
dataset
required
An input dataset to use for creating a segmentation.
segmentation
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

Items
string
The graphext advanced query used to identify the rows to include in each segment.
I