Derive a new column with a custom JS script.
return
clause returning either a value or null / undefined.
The script has access to a row
object that represent a row in the dataset and have the column names as keys.
Lists are supported both as inputs and outputs.
It’s important to correctly manage null values by checking for null (e.g. if (row.col != null) { ... }
) or using the JS optional chaining operator (?
).
Examples
ds.first_name
), datasets (ds
or ds[["first_name", "last_name"]]
) or models (referenced
by name e.g. "churn-clf"
).
Inputs
Outputs
step(..., {"param": "value", ...}) -> (output)
.
Parameters
Examples
boolean
category
date
number
text
url
list[number]
list[category]
list[url]
list[date]
list[boolean]