Count unique¶
math
Counts the number of unique elements in each list/array of the input column.
Usage¶
The following are the step's expected inputs and outputs and their specific types.
Step signature
count_unique(input: list) -> (output: number)
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.
Example¶
This step has no configuration parameters, so it's simply:
Example call (in recipe editor)
count_unique(ds.input_lists) -> (ds.n_unique)
Inputs¶
input: column:list
A column containing lists.
Outputs¶
output: column:number
The count of unique elements for each input list.