I have two (address) columns in two different dataframes, each column having a different length and i wish to iterate each element from one column of a dataframe w.r.t the other column of the other dataframe. Meaning, I wish to check if every element in first column of first dataframe, matches with any of the elements of the second column of the second dataframe and return a boolean value.
How do I implement the above in python?
Dataframe 1:
0 New Delhi, India
1 Mumbai, India
2 Bangalore, India
3 Dwarka, New Delhi, India
Dataframe 2:
0 Nepal
1 Assam, India
2 Delhi
Result: (length should be equal to len of col 1 of df 1)
True
False
False
True