From 4a687e047f6dda247465bbbab002006239ba02c7 Mon Sep 17 00:00:00 2001 From: Tyson Cung Date: Fri, 31 Oct 2025 15:35:25 +0800 Subject: [PATCH] DOC: Update tolerance parameter type to include list-like in Index.reindex The tolerance parameter in Index.reindex can accept list-like types (list, tuple, array, Series) in addition to scalar int/float values, but the parameter type description only mentioned 'int or float'. Updated the type description to 'int, float, or list-like' to match the actual behavior documented in the parameter description. Closes #62923 --- pandas/core/indexes/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 6fafbd9590143..93b615fe7b101 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4168,7 +4168,7 @@ def reindex( limit : int, optional Maximum number of consecutive labels in ``target`` to match for inexact matches. - tolerance : int or float, optional + tolerance : int, float, or list-like, optional Maximum distance between original and new labels for inexact matches. The values of the index at the matching locations must satisfy the equation ``abs(index[indexer] - target) <= tolerance``.