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" \ 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)