Custom Script
The Custom Script node lets you write custom transformation logic on tabular data or files. It accepts input of two types: a DataFrame (table) or a file.
Example
Filter input data by the product_line column, returning only rows that end with "Cars":
var table = NodeInputReader.inputAsDataFrame();
var stringColumn = table.stringColumn("product_line");
var filteredTable = table.where(stringColumn.endsWith("Cars"));
return filteredTable;
Available APIs
- Use
Ctrl+Spacein the FlowCode Editor for autocomplete. - Access input data via NodeInputReader.
- All Utilities are available through the
utilobject.