79794369

Date: 2025-10-19 16:31:57
Score: 0.5
Natty:
Report link

The answer of @BioData41 is working for me, however assert_frame_equal is throwing an exception if the comparison is failing.

For a simple boolean result, I am using this:

test_df1 = df1.reset_index(drop=True)[list(df2.columns)]
test_df2 = df2.reset_index(drop=True)
test_df1.compare(test_df2).empty # Should return True or False
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @BioData41
Posted by: mountrix