pandas.Interval.closed_left — pandas 2.2.3 documentation (original) (raw)
- API reference
- pandas arrays, scalars, and data types
- pandas.Inter...
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
Check if the interval is closed on the right side.
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