I want to compare values of two same columns with with different data frame
DF1
  id         values_externalCode
  3DR_Ntype   PRO_END
  3DR_NType   CON_END
  abc         a
DF2
  id         values_externalCode
  3DR_Ntype   PRO_END
  3DR_NType   CON_END
  abc         b
the code below which is i m using just compare same data frame column value
match = data_frame1.loc[(data_frame1['id'] ==data_frame1['id']) & (data_frame1['values_externalCode'] == data_frame1['values_externalCode'])]
if i m using below code for comparing two dataframes columns it gives me an error
match = data_frame1.loc[(data_frame1['id'] ==data_frame2['id']) & (data_frame1['values_externalCode'] == data_frame2['values_externalCode'])]
ValueError: Can only compare identically-labeled Series objects
My Question is how to compare two same columns values between two different data frames and only show match records of the two same column values between two data frames
Any Help would be appreciated thanks in Advance
Expected result
  DF1
  id         values_externalCode
  3DR_Ntype   PRO_END
  3DR_NType   CON_END
