Skip to content

Commit

Permalink
DOC: fix SA01,ES01 for pandas.arrays.IntervalArray.left (#60168)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuhinsharma121 authored Nov 1, 2024
1 parent a3f14bf commit d11ed2f
Show file tree
Hide file tree
Showing 2 changed files with 16 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 @@ -89,7 +89,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.api.types.pandas_dtype PR07,RT03,SA01" \
-i "pandas.arrays.ArrowExtensionArray PR07,SA01" \
-i "pandas.arrays.IntegerArray SA01" \
-i "pandas.arrays.IntervalArray.left SA01" \
-i "pandas.arrays.IntervalArray.length SA01" \
-i "pandas.arrays.IntervalArray.right SA01" \
-i "pandas.arrays.NumpyExtensionArray SA01" \
Expand Down
16 changes: 16 additions & 0 deletions pandas/core/arrays/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,22 @@ def left(self) -> Index:
"""
Return the left endpoints of each Interval in the IntervalArray as an Index.
This property provides access to the left endpoints of the intervals
contained within the IntervalArray. This can be useful for analyses where
the starting point of each interval is of interest, such as in histogram
creation, data aggregation, or any scenario requiring the identification
of the beginning of defined ranges. This property returns a ``pandas.Index``
object containing the midpoint for each interval.
See Also
--------
arrays.IntervalArray.right : Return the right 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 d11ed2f

Please sign in to comment.