assert_frame_equal compares two DataFrames and outputs any differences.
assert_frame_equal
If you want to compare the DataFrames while ignoring the order of their index and column labels, use the argument check_like=True.
check_like=True
My previous tips on pandas.