I am facing issue when i try to tokenize a whole column that contains reviews of customer.
my file is stored in readfile
my column that i want to tokenize is 'Customer reviews'
This is my python code:
print("tokenization..\n") appling_tokenization= readfile.apply(lambda row: nltk.word_tokenize(row['Customer reviews']), axis=1)
My error is:
TypeError: expected string or bytes-like object