Results appear on Notebook but not on the Webapp

Thank you for your reply, but unfortunately that didn’t work either. I fiddled with the python code for a few hours and this is what gave me the result I wanted. Decided to share it incase someone else encounters a similar issue. All I did was convert the return function into a numpy array: