From f58b75e760dd4ce4c953e9ff4e9fbc27f0fe732f Mon Sep 17 00:00:00 2001 From: Pietro Battiston Date: Sat, 29 Jun 2019 18:29:29 +0200 Subject: [PATCH] DOC: list-like tolerance does not apply to Index.get_loc closes #20930 --- pandas/core/indexes/base.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 4b7582fcf7cc0..23089cb577bf5 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2724,17 +2724,11 @@ def _convert_can_do_setop(self, other): * backfill / bfill: use NEXT index value if no exact match * nearest: use the NEAREST index value if no exact match. Tied distances are broken by preferring the larger index value. - tolerance : optional + tolerance : int or float, optional Maximum distance from index value for inexact matches. The value of the index at the matching location most satisfy the equation ``abs(index[loc] - key) <= tolerance``. - Tolerance may be a scalar - value, which applies the same tolerance to all values, or - list-like, which applies variable tolerance per element. List-like - includes list, tuple, array, Series, and must be the same size as - the index and its dtype must exactly match the index's type. - .. versionadded:: 0.21.0 (list-like tolerance) Returns