pandas.Interval.open_left#

Interval.open_left#

Check if the interval is open on the left side.

For the meaning of closed and open see Interval

Returns:
bool

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

参见

Interval.open_right

Check if the interval is open on the right side.

Interval.closed_left

open_left 的布尔反值。

Examples

>>> iv = pd.Interval(0, 5, closed='neither')
>>> iv.open_left
True
>>> iv = pd.Interval(0, 5, closed='both')
>>> iv.open_left
False