Skip to content

Count unique

math

Counts the number of unique elements in each list/array of the input column.

Example

This step has no configuration parameters, so it's simply:

count_unique(ds.input_lists) -> (ds.n_unique)

Usage

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

count_unique(input: list) -> (output: number)

Inputs


input: column:list

A column containing lists.

Outputs


output: column:number

The count of unique elements for each input list.