pandas.arrays.IntervalArray.right#

property IntervalArray.right[source]#

Return the right endpoints of each Interval in the IntervalArray as an Index.

This property extracts the right endpoints from each interval contained within the IntervalArray. This can be helpful in use cases where you need to work with or compare only the upper bounds of intervals, such as when performing range-based filtering, determining interval overlaps, or visualizing the end boundaries of data segments.

See also

arrays.IntervalArray.left

Return the left endpoints of each Interval in the IntervalArray as an Index.

arrays.IntervalArray.mid

Return the midpoint of each Interval in the IntervalArray as an Index.

arrays.IntervalArray.contains

Check elementwise if the Intervals contain the value.

Examples

>>> interv_arr = pd.arrays.IntervalArray([pd.Interval(0, 1), pd.Interval(2, 5)])
>>> interv_arr
<IntervalArray>
[(0, 1], (2, 5]]
Length: 2, dtype: interval[int64, right]
>>> interv_arr.right
Index([1, 5], dtype='int64')