pandas.IntervalIndex.open_right#
- property IntervalIndex.open_right[source]#
Check if the intervals are open 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.open_leftCheck if the intervals are open on the left side.
IntervalIndex.closed_rightBoolean inverse of open_right.
Examples
>>> iv_idx = pd.interval_range(start=0, end=2, closed="right") >>> iv_idx.open_right False
>>> iv_idx = pd.interval_range(start=0, end=2, closed="left") >>> iv_idx.open_right True