Skip to content

Segment rows

binning

Create a segmentation using graphext's advanced query syntax (similar to Elasticsearch).

Example

This simple query creates a new segmentation differentiating between adults and minors:

segment_rows(ds, {"adult": "age: >=18", "minor": "age: <18"}) -> (ds.segmentation)

Usage

The following are the step's expected inputs and outputs and their specific types.

segment_rows(ds_in: dataset, {"param": value}) -> (segmentation: list[category])

where the object {"param": value} is optional in most cases and if present may contain any of the parameters described in the corresponding section below.

Inputs


ds_in: dataset

An input dataset to use for creating a segmentation.

Outputs


segmentation: column:list[category]

Parameters


*param: string

The graphext advanced query used to identify the rows to include in each segment. Note that all parameters should have the same type.