Skip to content

API: Change assert_index_equal(exact=) default from "equiv" to True #57436

Open
@mroeschke

Description

Recently, #57429 slipped through the cracks because Index[int64] is considered equal to RangeIndex. While convenient, this allows code changes to potentially introduce a change that leads to increase in memory usage (or decrease in the hopeful case). I don't think this lack of clarity is worth the convenience of making Index[int64] equivalent to RangeIndex by default and therefore exact should default to True

Metadata

Assignees

No one assigned

    Labels

    API DesignIndexRelated to the Index class or subclassesTestingpandas testing functions or related to the test suite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions