pandas.Interval.open_right#

Interval.open_right#

Check if the interval is open on the right side.

For the meaning of closed and open see Interval

Returns:
bool

如果区间在左侧不是闭合的,则为 True。

参见

Interval.open_left

Check if the interval is open on the left side.

Interval.closed_right

open_right 的布尔反值。

Examples

>>> iv = pd.Interval(0, 5, closed='left')
>>> iv.open_right
True
>>> iv = pd.Interval(0, 5)
>>> iv.open_right
False