Skip to content

Commit 4a687e0

Browse files
committed
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
1 parent 46ed6b1 commit 4a687e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4168,7 +4168,7 @@ def reindex(
41684168
limit : int, optional
41694169
Maximum number of consecutive labels in ``target`` to match for
41704170
inexact matches.
4171-
tolerance : int or float, optional
4171+
tolerance : int, float, or list-like, optional
41724172
Maximum distance between original and new labels for inexact
41734173
matches. The values of the index at the matching locations must
41744174
satisfy the equation ``abs(index[indexer] - target) <= tolerance``.

0 commit comments

Comments
 (0)