The python code works fine outside of Alteryx in jupyter notebook. But when I package it and try to run inside Alteryx it throws an error.
I am using the following code to run the data.
def find_grams(text):
for i in df:
tokens = list(map(lambda data: data.split(' '), clean))
return tokens
It gives the following error inside Alteryx
Attribute Error: 'float' object has no attribute 'split'