Skip to content

Attribute "dtype" are different error with testing.assert_frame_equal #35715

Closed
@tejasj654

Description

@tejasj654

Hi,
When trying testing.assert_frame_equal, I get an assert error.
E Attribute "dtype" are different
E [left]: Int64
E [right]: Int16

However, for assert_frame_equal, I do set the argument check_dtype=False.

From traceback, I can see that assert_extension_array_equal is being called with check_dtype=True which is causing the issue.

I do not have a sample at hand and I will update when I can.

Affected version: 1.1.0
The test cases were / are running fine with 1.0.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugExtensionArrayExtending pandas with custom dtypes or arrays.Testingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions