Skip to content

Commit 3a9fd9e

Browse files
chean.wei.khorchean.wei.khor
chean.wei.khor
authored and
chean.wei.khor
committed
add deprecated
1 parent 0d903a4 commit 3a9fd9e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pandas/core/indexes/interval.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -973,10 +973,18 @@ def interval_range(
973973
for numeric and 'D' for datetime-like.
974974
name : str, default None
975975
Name of the resulting IntervalIndex.
976-
inclusive : {'left', 'right', 'both', 'neither'}, default 'right'
976+
closed : {'left', 'right', 'both', 'neither'}, default 'right'
977977
Whether the intervals are closed on the left-side, right-side, both
978978
or neither.
979979
980+
.. deprecated:: 1.5.0
981+
Argument `closed` has been deprecated to standardize boundary inputs.
982+
Use `inclusive` instead, to set each bound as closed or open.
983+
inclusive : {"both", "neither", "left", "right"}, default "both"
984+
Include boundaries; Whether to set each bound as closed or open.
985+
986+
.. versionadded:: 1.5.0
987+
980988
Returns
981989
-------
982990
IntervalIndex

0 commit comments

Comments
 (0)