Hi,
When update to 4.7 with new python script. How to choose column in python script?
PS: In the olde version, can double click to choose.
Hi @eddy0620,
as the new Python Script node provides two possibilities of transforming the input (PyArrow and Pandas), unfortunately transforming everything directly to a Pandas DataFrame is not possible anymore.
Thus, you need to transform it first, for example to a Pandas DataFrame (see the Templates in the script node):
input_table = knio.input_tables[0].to_pandas()
then access the column as input_table['LINE-03']
Best regards
Steffen
@eddy0620 @steffen_KNIME it might be possible that the question is referring to the phenomenon that sometimes double click is unresponsive in the (new) Python script window (on my Mac). Trying several times, opening and closing the node and sometimes restarting KNIME can help.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.