Skip to content

Commit bfcbae0

Browse files
tuhinsharma121ZKaoChi
authored andcommitted
DOC: fix SA01,ES01 for pandas.arrays.IntervalArray.right (pandas-dev#60249)
1 parent 71ced25 commit bfcbae0

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
9090
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
9191
-i "pandas.arrays.IntegerArray SA01" \
9292
-i "pandas.arrays.IntervalArray.length SA01" \
93-
-i "pandas.arrays.IntervalArray.right SA01" \
9493
-i "pandas.arrays.NumpyExtensionArray SA01" \
9594
-i "pandas.arrays.SparseArray PR07,SA01" \
9695
-i "pandas.arrays.TimedeltaArray PR07,SA01" \

pandas/core/arrays/interval.py

+15
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,21 @@ def right(self) -> Index:
12691269
"""
12701270
Return the right endpoints of each Interval in the IntervalArray as an Index.
12711271
1272+
This property extracts the right endpoints from each interval contained within
1273+
the IntervalArray. This can be helpful in use cases where you need to work
1274+
with or compare only the upper bounds of intervals, such as when performing
1275+
range-based filtering, determining interval overlaps, or visualizing the end
1276+
boundaries of data segments.
1277+
1278+
See Also
1279+
--------
1280+
arrays.IntervalArray.left : Return the left endpoints of each Interval in
1281+
the IntervalArray as an Index.
1282+
arrays.IntervalArray.mid : Return the midpoint of each Interval in the
1283+
IntervalArray as an Index.
1284+
arrays.IntervalArray.contains : Check elementwise if the Intervals contain
1285+
the value.
1286+
12721287
Examples
12731288
--------
12741289

0 commit comments

Comments
 (0)