I have two dataframes as below: I want to compare two dataframes row by row and if suppose row1 of df1 is not equal to row1 of df2 print an error
df1 A B 0 1 3 1 2 4 2 3 5 3 4 6 4 5 7 df2 A B 0 1 3 1 2 4 2 3 5 3 4 5 4 5 7 I want to print an error for row#4 because df1 has the value of 6 for variable 'B' and df1 has the value of 5