Skip to content

Length

fast step  text

Calculates the length of lists (number of elements) or texts/categories (number of characters).

Usage


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

Step signature
length(input: list|text|category) -> (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 parameters, so it's simply

Example call (in recipe editor)
length(ds.input) -> (ds.input_lengths)

Inputs


input: column:list|text|category

A column of input lists, texts or categories.

Outputs


output: column:number

A column containing lengths of the input column's values.