API: Change assert_index_equal(exact=)
default from "equiv"
to True
#57436
Labels
API Design
Index
Related to the Index class or subclasses
Testing
pandas testing functions or related to the test suite
Recently, #57429 slipped through the cracks because
Index[int64]
is considered equal toRangeIndex
. 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 makingIndex[int64]
equivalent toRangeIndex
by default and thereforeexact
should default toTrue
The text was updated successfully, but these errors were encountered: