I have a dataframe1 with a column that has cell entries like so (each cell is a set of comma separated words) - "are, boy, cat, dog, ear, far, gone"
.
Dataframe2 has a column with cell entries like so (each cell is a single letter or word) - "are"
or "boy"
or "gone"
.
I want to add a column to dataframe1 that will have a boolean entry if a word in each cell in dataframe1 has the word in dataframe2. For example,
DF1 = (are, boy, cat, dog, ear, far, gone), (home, guy, tall, egg), (cat, done, roof, grass), etc.....
DF2 = (are), (boy), (gone), etc....
New column cell value in dataframe1 = (1), (0), (1), etc....