pandas.IntervalIndex.closed_right#
- property IntervalIndex.closed_right[source]#
Check if the intervals are closed on the right side.
All intervals in an IntervalIndex share the same
closedvalue, so this describes the index as a whole rather than element-wise.See also
IntervalIndex.closed_leftCheck if the intervals are closed on the left side.
IntervalIndex.open_rightBoolean inverse of closed_right.
Examples
>>> iv_idx = pd.interval_range(start=0, end=2, closed="right") >>> iv_idx.closed_right True
>>> iv_idx = pd.interval_range(start=0, end=2, closed="left") >>> iv_idx.closed_right False