I have a dataset with two string columns that each contain multiple words (locations, for example). Rowwise, I want to flag observations where the two strings have any words in common. Does anyone know a way to achieve this? Example strings and expected output: col1 | col2 | flag London, United Kingdom | British Columbia | 0 Mexico City | New Mexico | 1 Boston | New York | 0 United States of America | South America | 1
... View more