You can use assert_frame_equal and not check the dtype of the columns.
# Pre v. 0.20.3 # from pandas.util.testing import assert_frame_equal from pandas.testing import assert_frame_equal assert_frame_equal(df1, df2, check_dtype=False) Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesStack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Explore Stack Internal You can use assert_frame_equal and not check the dtype of the columns.
# Pre v. 0.20.3 # from pandas.util.testing import assert_frame_equal from pandas.testing import assert_frame_equal assert_frame_equal(df1, df2, check_dtype=False) You can use assert_frame_equal and not check the dtype of the columns.
from pandas.util.testing import assert_frame_equal assert_frame_equal(df1, df2, check_dtype=False) You can use assert_frame_equal and not check the dtype of the columns.
# Pre v. 0.20.3 # from pandas.util.testing import assert_frame_equal from pandas.testing import assert_frame_equal assert_frame_equal(df1, df2, check_dtype=False)