Skip to content

Commit cb5b75b

Browse files
toobazTomAugspurger
authored andcommitted
DOC: list-like tolerance does not apply to Index.get_loc (#27128)
closes #20930
1 parent 67eec4e commit cb5b75b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pandas/core/indexes/base.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -2724,17 +2724,11 @@ def _convert_can_do_setop(self, other):
27242724
* backfill / bfill: use NEXT index value if no exact match
27252725
* nearest: use the NEAREST index value if no exact match. Tied
27262726
distances are broken by preferring the larger index value.
2727-
tolerance : optional
2727+
tolerance : int or float, optional
27282728
Maximum distance from index value for inexact matches. The value of
27292729
the index at the matching location most satisfy the equation
27302730
``abs(index[loc] - key) <= tolerance``.
27312731
2732-
Tolerance may be a scalar
2733-
value, which applies the same tolerance to all values, or
2734-
list-like, which applies variable tolerance per element. List-like
2735-
includes list, tuple, array, Series, and must be the same size as
2736-
the index and its dtype must exactly match the index's type.
2737-
27382732
.. versionadded:: 0.21.0 (list-like tolerance)
27392733
27402734
Returns

0 commit comments

Comments
 (0)