Python Script Execute failed: Could not connect to the Python process.

Hello @alfroc
You are right; the Py coding for referencing data input from KNIME to pandas, and sending it to the output port changed from legacy nodes.

You can test with 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(type(df))

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

BR

PS.- The equivalent code for your Py code example would be:

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

# Copy input to output
knio.output_tables[0] = knio.Table.from_pandas(knio.input_tables[0].to_pandas())