nltk tokenize AttributeError: ‘float‘ object has no attribute ‘lower

There are generally two possible reasons for this problem

The empty value is in float format

Solution

The solution corresponding to null value DF [‘value ‘] = DF [‘value’]. Fillna (“”) DF. Value = DF. Value. Astype (STR) the solution corresponding to float format DF. Value = DF. Value. Astype (STR)

Read More: