diff --git a/pandas/core/series.py b/pandas/core/series.py index 43738831981d2..2c191a2cc9a68 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -5074,9 +5074,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