Phyton Node

Hello community,


I'm new to Knime but have already issues with the Python Script node. I'm trying to executing a script, but the execution doesn't go past 30 %.


The Phyton Code is:

import sys  
import pandas as pd

# Copy input to output
output_table = input_table.copy()
#for index, row in output_table.iterrows():
#    print row['bon_id'], row['wg_bez']

for i in range(0,len(output_matrix)):

    output_matrix[i][1]=output_matrix[i][1].replace(' ','_')
for i in range(0,len(output_matrix)):
    if output_matrix[i][0] not in myTable.keys():
        myTable[output_matrix[i][0]]= list()

for j in myTable.keys():
    str1 = ' , '.join(myTable[j])
    str1 ="{"+str1+"}"
    print str1
    myTable[j] = str1
#output_table = pd.DataFrame.from_dict(myTable,orient='index')



Is this a well known issue?

Thanks in advance from Frankfurt



Hi Konstantin,

any chance you can provide us some example data? It's hard to reproduce your error without input data.