Skip to content

Commit

Permalink
DOC: fix SA01,ES01 for pandas.arrays.IntervalArray.right (#60249)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Nov 8, 2024
1 parent 754d091 commit 2e3e694
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
-i "pandas.arrays.IntegerArray SA01" \
-i "pandas.arrays.IntervalArray.length SA01" \
-i "pandas.arrays.IntervalArray.right SA01" \
-i "pandas.arrays.NumpyExtensionArray SA01" \
-i "pandas.arrays.SparseArray PR07,SA01" \
-i "pandas.arrays.TimedeltaArray PR07,SA01" \
Expand Down
15 changes: 15 additions & 0 deletions pandas/core/arrays/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,21 @@ def right(self) -> Index:
"""
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
--------
Expand Down

0 comments on commit 2e3e694

Please sign in to comment.