pandas.Interval.closed_left — pandas 2.2.3 documentation (original) (raw)

Interval.closed_left#

Check if the interval is closed on the left side.

For the meaning of closed and open see Interval.

Returns:

bool

True if the Interval is closed on the left-side.

See also

Interval.closed_right

Check if the interval is closed on the right side.

Interval.open_left

Boolean inverse of closed_left.

Examples

iv = pd.Interval(0, 5, closed='left') iv.closed_left True

iv = pd.Interval(0, 5, closed='right') iv.closed_left False