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

Script

  • Dark
    Light

Article summary

Description

A Script Source node imports 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". This node expects a dataframe assigned to frame at the end of this section.

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 prompts the user for several node-relevant snippets.
ParametersTyping # within the script editor prompts the user for a list of available parameters.
@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.
PreviewOnce the node is configured, the source data can be previewed at any time.

Was this article helpful?

What's Next