You can write your own statement function, which uses assert_frame_equal() and inverts the result:
def assert_frame_not_equal(*args, **kwargs): try: assert_frame_equal(*args, **kwargs) except AssertionError:
This will use the same logic that assert_frame_equal() to compare data frames, so the question of what constitutes equality is avoided - inequality is just the opposite of what assert_frame_equal() defines.
source share