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 closed value, so this describes the index as a whole rather than element-wise.

See also

IntervalIndex.open_left

Check if the intervals are open on the left side.

IntervalIndex.closed_right

Boolean 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