When running my Python script, I get the following error message: ERROR Python Script (Labs) 5:7 Execute failed: org.knime.core.util.DuplicateKeyException: Duplicate key detected: “0”
In PyCharm the script works without problems and also the execution (“Execute script”) in the node configuration window works without problems. My guess is that there is a problem with the output table, since I call it in a function:
@Christian_Essen could it be that you might have duplicate IDs (RowIDs) in your data set. You might have to reset the data frame index within the Python node:
Thank you very much – tackling the duplicate IDs (RowIDs) did the trick. I did this directly in the Python script and inserted ignore_index=True.
The script now looks like this