diff --git a/pandas/core/series.py b/pandas/core/series.py index c79ecd554bed5..800e8c7d88406 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -5072,9 +5072,9 @@ def between(self, left, right, inclusive="both") -> Series: 4 False dtype: bool - With `inclusive` set to ``False`` boundary values are excluded: + With `inclusive` set to ``"neither"`` boundary values are excluded: - >>> s.between(1, 4, inclusive=False) + >>> s.between(1, 4, inclusive="neither") 0 True 1 False 2 False