I ran a python code within a Python Source node and it’s working INSIDE THE config window.
When I go out and run it as a node, it fails with -
ERROR PythonKernel ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
ERROR Python Source 0:98 Execute failed: An exception occured while running the python kernel. See console and log for details.
What could go wrong?
I the same python code before, successfully. I added some calculations & dataframes, and now it has those errors.
it seems like your script creates an index with ambiguous values. This is not supported in KNIME, but only becomes a problem as soon as the output_table is transferred. Adding the following lines to your script should fix the problem: