pandas.Interval.right#
- Interval.right#
Right bound for the interval.
The right endpoint of the interval. Whether it is included in the interval depends on the value of
closed.See also
Interval.leftReturn the left bound for the interval.
numpy.ndarray.rightA similar method in numpy for obtaining the right endpoint(s) of intervals.
Examples
>>> interval = pd.Interval(left=1, right=2, closed='left') >>> interval Interval(1, 2, closed='left') >>> interval.right 2