0

I have two dataframes (T and S). They both share a column name called ID but S has a latitude and longitude column. I would like to go through both data frames and match each lat and long to their appropriate IDs (station IDs in each DF is not in the same order) in dataframe T. These DFs are not the same size but they are both very large with some duplicates.

Ali Mroueh
  • 33
  • 4

1 Answers1

0
print pd.merge(T, S, on='long' 'lat', how='inner')
Dharman
  • 30,962
  • 25
  • 85
  • 135