Python - ValueError: Cannot index with vector containing NA / NaN values
If first line failed still is possible replace NaN
s in condition in str.contains
by parameter na=False
:
mask = dframe.Product.str.contains(word, case=False, na=False)
Or try omit inplace=True
and assign back:
dframe['Product'] = dframe['Product'].fillna('')