AttributeError NoneType object has no attribute 'to_arrow_table'

Hello, when I run the Python Script node I get this message:

AttributeError: 'NoneType' object has no attribute 'to_arrow_table'

; however, I’m not sure what is the section of the code that triggers this message. For reference, the code runs accordingly if I execute it in Jupyter Notebook or Pycharm.

I recently updated KNIME to the latest version. I don’t remember what version I had before, but it’s been more than a year I believe since the last version installed.

Will appreciate any help provided. Regards.