I need some help in understanding merging 2 data sets in one in Python.
Their layout is as follows,
- First has columns: city_id, city_name
- Second has: origincity_id, lat, long, destinationcity_id, lat, long
I wanted to understand as to how I could merge these two data sets using python or pandas to match the city_name in the first data set to create two columns to match the origin city id and destination city id?
Thank you.