I've a simple column of strings, and a list of strings.
strings_col
"the cat is on the table"
"the dog is eating"
list1 = ["cat", "table", "dog"]
I need to create another column in which every row contains the string contained in the list if they are in the string_col, if it contains two or more strings from the list, then I'd like to have more rows. The result should be something like this:
strings_col string
"the cat is on the table" cat
"the cat is on the table" table
"the dog is eating" dog
How can I do that? thanks