I have to check title column contains color value from color column.
dataframe1['title'].str.contains(dataframe1['color'])
I am getting an error as
TypeError: 'Series' objects are mutable, thus they cannot be hashed
I have to check title column contains color value from color column.
dataframe1['title'].str.contains(dataframe1['color'])
I am getting an error as
TypeError: 'Series' objects are mutable, thus they cannot be hashed
Try using apply
with lambda
.
Ex:
dataframe1.apply(lambda x: x['title'].str.contains(x['color'])