Int Index.slice_locs Not Raising with Float Arguments #20915
Labels
Dtype Conversions
Unexpected or buggy dtype conversions
Indexing
Related to indexing on series/frames, not to indexes themselves
Milestone
xref #4892 as I'm going through #20812 I am seeing tests which suggest that trying to call
slice_locs
with float arguments against an integer type Index should raise a TypeError:pandas/pandas/tests/indexes/test_base.py
Line 1350 in c4da79b
While these tests are currently passing, I believe the
TypeError
is getting raised from the call topytest.raises
(specifically a'list' object is not callable
for the third argument topytest.raises
) and not as a result of the actualindex.slice_locs
call.The text was updated successfully, but these errors were encountered: