Unable to resolve Type error using Tokenizer.tokenize from NLTK
w_tokenizer = nltk.tokenize.WhitespaceTokenizer()

dfimpnetc[column] = dfimpnetc[column].apply(lambda x: [lemmatizer.lemmatize(w) for w in w_tokenizer.tokenize(x)])


Try the above code.

Mark as correct if this helps ;)