Skip to content

Commit 4e6b9ce

Browse files
DOC: Enforce Numpy Docstring Validation for pandas.Interval.mid (#58572)
* DOC: add SA01 for pandas.Interval.mid * DOC: remove SA01 for pandas.Interval.mid
1 parent 02708ed commit 4e6b9ce

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8989
-i "pandas.Interval PR02" \
9090
-i "pandas.Interval.closed SA01" \
9191
-i "pandas.Interval.left SA01" \
92-
-i "pandas.Interval.mid SA01" \
9392
-i "pandas.Interval.right SA01" \
9493
-i "pandas.IntervalIndex.closed SA01" \
9594
-i "pandas.IntervalIndex.contains RT03" \

pandas/_libs/interval.pyx

+6
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ cdef class IntervalMixin:
167167
"""
168168
Return the midpoint of the Interval.
169169
170+
See Also
171+
--------
172+
Interval.left : Return the left bound for the interval.
173+
Interval.right : Return the right bound for the interval.
174+
Interval.length : Return the length of the interval.
175+
170176
Examples
171177
--------
172178
>>> iv = pd.Interval(0, 5)

0 commit comments

Comments
 (0)