Pandas dataframe values equality test
Ah, of course there is a solution for this already:
from pandas.util.testing import assert_frame_equal
Also numpy's utilities work:
import numpy.testing as npt
npt.assert_array_equal(df1, df2)
While assert_frame_equal is useful in unit tests, I found the following useful on analysis as one might want to further check which values are not equal:
df1.equals(df2)