df2.reset_index(drop=True, inplace=True)
df2.loc[-1] = [2, 3, 4, 5]
df2.loc[-2] = [14, 15, 16, 17]
df2.reset_index(drop=True, inplace=True)
df2 = df2[['A', 'B', 'C']]
Compare Python Pandas DataFrames for matching rows