how can i compare two pandas dataframes and return an index mapping them to each other?

The solution is to use df1.merge(df2, on=[‘city1’, ‘city2’,….])

That works for me, except where the data types are different.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top