Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
added 76 characters in body
Source Link
Alexander
  • 110.6k
  • 32
  • 212
  • 208

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) 
Source Link
Alexander
  • 110.6k
  • 32
  • 212
  • 208

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)