How to loop through pandas df column, finding if string contains any string from a separate pandas df column?
问题 I have two pandas DataFrames in python. DF A contains a column, which is basically sentence-length strings. |---------------------|------------------| | sentenceCol | other column | |---------------------|------------------| |'this is from france'| 15 | |---------------------|------------------| DF B contains a column that is a list of countries |---------------------|------------------| | country | other column | |---------------------|------------------| |'france' | 33 | |------------------