derive_column
Derive a new column with a custom JS script.
Supports any JS script using ECMAScript 2023 syntax. The script should have a 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 (?
).
Was this page helpful?