Skip to main content
info
This documentation is for version v2.5 of the product.
For the latest version(v2.7) documentation click here
Version: v2.5 print this page

Jython

This node runs any given Jython code. The input dataframe is passed in the variable inDF. The output dataframe should be placed in the variable outDF

Input

The input dataframe is passed in the variable in DF

Output

The output dataframe should be placed in the variable outDF

Type

transform

Fields

NameTitleDescription
tempTableTemp TableTemp Table Name to be used
codeJythonPython code to be run. Input dataframe is in inDF. Output dataframe is in outDF.
schemaSchema
outputColNamesColumn Names for the CSVNew Output Columns of the SQL
outputColTypesColumn Types for the CSVData Type of the Output Columns
outputColFormatsColumn Formats for the CSVFormat of the Output Columns

Details

This node runs any given Jython code.

Below is an example jython code. It takes the input dataframe 'inDF', and returns the new dataframe 'outDF'

outDF = inDF.groupBy("c2").count()