Custom computed column functions¶
Data Prep custom functions are only available for on-premise and virtual private cloud installations. Your Data Prep Administrator must enable this feature in your application. Contact DataRobot Support for documentation on developing Data Prep custom functions.
If your organization has developed and installed custom functions, you can add new columns by applying a custom function to existing columns in your dataset. In the following section, you'll learn how to use the Compute tool with a custom function.
Use a custom function¶
To use custom functions with the Compute tool:
In Data Prep, click compute in the Tools bar.
In the Compute values pane, name the new column.
In the formula row beneath the column name, type the name of a custom function. The usage details for the function display beneath the formula row.
Select the columns to be used as variables in the function. Follow the usage guidelines to form your expression.
In this example, the custom function is named
num2are columns in the dataset:
If the formula contains errors, the Compute tool displays an error message as it does for built-in functions. The errors also display in the Compute step in the Steps tool until the errors are resolved.
Verify that the function is operating as intended by viewing the new column.
Click Save to save the new column.