Running the code within the Python Script node it appears run⌠but the result is ArrowTable[shape=(7,4)]
And I (obviously) get no table output from the node
Can someone please help or direct me
Appreciated
** Edited to show the output from running the code in VSC as python **
If you print(df), does that give you your desired output? The method knio.Table.from_pandas returns an ArrowTable, which in line 14 is used for the output knio.output_tables[0]. That is correct and behaves as it should.
I do not see why you should not get a table output from the node. If you execute the node, right-click and show the output Table (see screenshot), what does it show?
Yes. If I run print(df) in python outside of KNIME I get exactly the response I want. This is a table that is exactly as I would want to use as an output from the KNIME python node
When I execute the KNIME python node I get the following (No result)
Although you will see I used a Variable Creator to enable me to run the Python Script node as without this I couldnât get it to execute
Please let me know if there is any more I can try (I canât easily share a copy of the CSV as the JSON files are large and contain sensitive data⌠but potentially I could create a few dummy records)
ah, your node is not yet configured. For the overall understanding, have a look here and scroll down to âwhat is a node status?â
In this specific scenario, your Python Script node expects an input table (via the small triangle at the left of the node; this small triangle is known as âinput portâ). Because it gets no input table, the whole node is ânot configuredâ (indicated by the traffic light being red). As you do not have an input table, but read it from within the Python Script node, you need to remove the input port. Do so by clicking on the three dots and navigate through to remove the input table port. Then the traffic light should switch to yellow. Now you can right-click and execute the node. Then it should be green and you should have your data in the output table.