Error in Python Script node

Hello,
when I try to execute the Python Script node, I get the following error:
ERROR Python Script 3:159 Execute failed: No serializer extension having the id or processing python type “pandas.core.series.Series” could be found.
Unsupported column type in column: “1”, column type: “<class ‘pandas.core.series.Series’>”.
Does anyone know how to fix it?

difficult to debug without seeing the workflow sample. You might want to upload it to get better help here.
br

2 Likes

@zielinska_km you might have to convert a series to a data frame (KNIME Python Integration Guide). But that would depend on your kind of data.

https://pandas.pydata.org/docs/reference/api/pandas.Series.to_frame.html

s = pd.Series(["a", "b", "c"],
               name="vals")
df = s.to_frame()

knio.output_tables[0] = knio.write_table(df)
3 Likes