Hey I have a dataframe as shown
id A B
1 2 ['a', 'c', 'd']
3 4 ['s', 'z', 'a', 'e']
5 6 ['b', 'z', 'd']
7 8 ['a', 'g']
Now, I would like to extract all rows that have 'a' in column "B" Desired Output:
id A B
1 2 ['a', 'c', 'd']
3 4 ['s', 'z', 'a', 'e']
7 8 ['a', 'g']
Help regarding accomplishing the above in python using Pandas will be appreciated :)
Thank you in advance for the help :)