I have a dataframe that looks like this.
UID Words
1 playbook, gold, fun, toxic
2 play, silver, golden
3 played, toxicwaste, funny, golden
I need a function which will filter the rows depending on exact match. ie. if I wish to extract rows containing gold, the result will be
UID Words
1 playbook, gold, fun, toxic
But if I want rows with golden, the output should be
UID Words
2 play, silver, golden
3 played, toxicwaste, funny, golden