pandas.Interval.closed_left
- 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
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.Interval.closed_left.html