Working with data using python

Hello @Alex_025
You can learn in the node by looking at the examples in ‘Templates’ tab.

Besides that, take a look in the following code as starting point:

import knime.scripting.io as knio
import pandas as pd

# data in
df = knio.input_tables[0].to_pandas()

# things happen
print(df)

# output as pd.DataFrame
knio.output_tables[0] = knio.Table.from_pandas(df.to_frame())

BR

3 Likes