I have a data frame that sometimes has multiple values in cells like this:
df:
Fruits
apple, pineapple, mango
guava, blueberry, apple
custard-apple, cranberry
banana, kiwi, peach
apple
Now, I want to filter the data frame having an apple in the value. So my output should look like this:
Fruits
apple, pineapple, mango
guava, blueberry, apple
apple
I used the str.contains('apple') but this is not returning the ideal result.
Can anyone help me with how I can get this result?

