Hello,
I have a problem in executing the python scripting node. Seems like it depends on the input data whether there are symbols or umlauts. I get for example following error notification:
Traceback (most recent call last):
File “/Applications/KNIME 3.5.3.app/Contents/Eclipse/plugins/org.knime.python2_3.6.0.v201807061638/py/PythonKernelBase.py”, line 278, in execute
exec(source_code, self._exec_env, self._exec_env)
File “”, line 15, in
File “/Applications/KNIME 3.5.3.app/Contents/Eclipse/plugins/org.knime.python2_3.6.0.v201807061638/py/PythonKernelBase.py”, line 382, in write
self.stdstream.write(message)
UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\u200b’ in position 1223: ordinal not in range(128)
I tested in the scripting node itself and found out that there is no problem in executing line 1 to 3 but if it comes to print(np2) I get an error and df2 is either remaining blank or I will get an error as well. I dont know where to start working at to fix the ascii error…
[1] np1 = np.array(input_table[‘idDocument’])
[2] np2 = np.array(input_table[‘preprocessed content’])
[3] df2 = pd.DataFrame(np2, index = np1, columns = [‘Tagged Document’])
[4] print(df2) #error here
[5] print(np2) #error here
Thanks in advance!!
Jasmin