Skip to content

BUG: Fix assert_frame_equal dtype handling when check_dtype=False (#61473) #61525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

iabhi4
Copy link
Contributor

@iabhi4 iabhi4 commented May 31, 2025

Fixes a bug in assert_frame_equal where DataFrames with logically equal values but different dtypes (nullable vs non-nullable) would raise errors even with check_dtype=False. Now, when check_dtype=False, dtype mismatches won’t cause failures.

@iabhi4 iabhi4 force-pushed the bugfix-assert_frame_equal-check_dtype-61473 branch 3 times, most recently from ad74d18 to e738953 Compare June 1, 2025 21:23
@mroeschke mroeschke added the Testing pandas testing functions or related to the test suite label Jun 2, 2025
@iabhi4 iabhi4 force-pushed the bugfix-assert_frame_equal-check_dtype-61473 branch from e738953 to 5e422e4 Compare June 3, 2025 00:07
@iabhi4 iabhi4 force-pushed the bugfix-assert_frame_equal-check_dtype-61473 branch from 5e422e4 to fcac82c Compare June 3, 2025 00:11
@iabhi4 iabhi4 requested a review from mroeschke June 3, 2025 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: assert_frame_equal(check_dtype=False) fails when comparing two DFs containing pd.NA that only differ in dtype (object vs Int32)
2 participants