pandas.DataFrame.equals

DataFrame.equals(other)

Determines if two NDFrame objects contain the same elements. NaNs in the same location are considered equal.