pandas.Interval.open_right — pandas 2.2.3 documentation (original) (raw)
- API reference
- pandas arrays, scalars, and data types
- pandas.Inter...
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 if the Interval is not closed on the left-side.
See also
Check if the interval is open on the left side.
Boolean inverse of open_right.
Examples
iv = pd.Interval(0, 5, closed='left') iv.open_right True
iv = pd.Interval(0, 5) iv.open_right False