The following node is available in the Open Source KNIME predictive analytics and data mining platform version 2.7.1. Discover over 1000 other nodes, as well as enterprise functionality at http://knime.com.

JPython Function

This node populates a new column (appended to the input DataTable) by executing the specified JPython function once per row in the input DataTable. The values for each column in the input row may be accessed via the val("column name") (returning float, int or string) or the valplain("column name") (returning the concrete cell object) JPython function. For example, a simple JPython function to sum the values in 2 input columns might be:

val("col1") + val("col2")

Currently employs jython v2.2.1.

Ports

Input Ports
0 Table that the JPython function will operate on.
Output Ports
0 Table containing the results of the JPython function.
This node is contained in KNIME JPython Scripting nodes provided by KNIME GmbH, Konstanz, Germany.