From e3b957e38765791b71141876738d9333702fe968 Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Sat, 4 May 2024 19:02:12 +0530 Subject: [PATCH 1/2] DOC: add SA01 for pandas.Interval.mid --- pandas/_libs/interval.pyx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index a37ab45dd57ed..8ad0887885f26 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -167,6 +167,12 @@ cdef class IntervalMixin: """ Return the midpoint of the Interval. + See Also + -------- + Interval.left : Return the left bound for the interval. + Interval.right : Return the right bound for the interval. + Interval.length : Return the length of the interval. + Examples -------- >>> iv = pd.Interval(0, 5) From c1d59dfe987bc6205a4bd435e3ff3685ccef0eeb Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Sat, 4 May 2024 19:02:30 +0530 Subject: [PATCH 2/2] DOC: remove SA01 for pandas.Interval.mid --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 936e3664cfe93..955fa5db17adc 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -89,7 +89,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Interval PR02" \ -i "pandas.Interval.closed SA01" \ -i "pandas.Interval.left SA01" \ - -i "pandas.Interval.mid SA01" \ -i "pandas.Interval.right SA01" \ -i "pandas.IntervalIndex.closed SA01" \ -i "pandas.IntervalIndex.contains RT03" \