find equal values in 2 df code example
Example 1: dataframe equals pandas
>>> exactly_equal = pd.DataFrame({1: [10], 2: [20]})
>>> exactly_equal
1 2
0 10 20
>>> df.equals(exactly_equal)
True
Example 2: find common values in different dataframes pandas
df3 = pd.merge(df1, df2, how='inner', left_on='UniqueID', right_on='ID')