Script
  • 17 Jul 2023
  • 1 Minute to read
  • Dark
    Light

Script

  • Dark
    Light

Article summary

Description

A Script node outputs data through a script.


Configuration Options

Basic Configuration Options

SettingDescription\Parameters
Script TypeThe scripting language (R or Python).
ScriptThe script to run. Any code should be placed in the section denoted by "#Place your code here".

Advanced Configuration Options

SettingDescription
Column Data TypeThis setting can be overridden.

Node Specific Snippets

SettingDescription
Script SnippetsTyping @R (R) or @P (Python) within the script editor will prompt the user for several node relevant snippets.
ParametersTyping # within the script editor will prompt the user for a list of available parameters.
@input_pathThe input path notation is a string representation of the input file for the scripting node. The input file contains the output from the upstream dataframe.
@input_path_1This path notation is used when there are multiple input nodes. input_path_1 indicates the first connected upstream node output. input_path_2 is the second connected upstream node output. For additional connected nodes increase the trailing number as needed.
@output_pathThe output path notation is a string representation of the output file for the scripting node.
@path('/home/other')The path notation can be used to reference DataWORQ virtual paths. This notation will convert the virtual path to the physical path upon execution.

Actions

ActionDescription
Infer Data TypesAutomatically infer the data types used for each column. These data types can be overridden in the advanced section.
RunOnce the node is configured, the output can be run at any time.

Was this article helpful?

What's Next