If row value contains text from a list as substrings, I would like to add a new column on my df with the values matching the list.
INPUT DATAFRAME:
1 ['a','b','d']
2 ['a','e','l']
3 ['a','b']
4 ['a','x','t','a','b','A']
This is my list:
list=['a','b','A']
output expected:
index tech final_tech
1 ['a','b','d'] a, b
2 ['a','e','l'] a
3 ['a','b'] a, b
4 ['a','x','t','a','b','A'] a, b, A
Any idea how to I can do that?
Thanks