From 36109f5bacc607d3f03a73f45ab43e57fda7720d Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Sat, 4 May 2024 18:17:32 +0530 Subject: [PATCH 1/3] DOC: add SA01 for pandas.Interval.closed --- pandas/_libs/interval.pyx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index a37ab45dd57ed..f8ee34e6b9257 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -405,6 +405,14 @@ cdef class Interval(IntervalMixin): Either ``left``, ``right``, ``both`` or ``neither``. + See Also + -------- + Interval.open_left : Boolean inverse of closed_left. + Interval.closed_left : Check if the interval is closed on the left side. + Interval.closed_right : Check if the interval is closed on the right side. + Interval.open_left : Check if the interval is open on the left side. + Interval.open_right : Check if the interval is open on the right side. + Examples -------- >>> interval = pd.Interval(left=1, right=2, closed='left') From bacfca658c277086359cd82a29ea76f34853e22d Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Sat, 4 May 2024 18:18:18 +0530 Subject: [PATCH 2/3] DOC: remove SA01 for pandas.Interval.closed --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 936e3664cfe93..4f6d7b5c5b92c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -87,7 +87,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Index.ravel PR01,RT03" \ -i "pandas.Index.str PR01,SA01" \ -i "pandas.Interval PR02" \ - -i "pandas.Interval.closed SA01" \ -i "pandas.Interval.left SA01" \ -i "pandas.Interval.mid SA01" \ -i "pandas.Interval.right SA01" \ From f97c177e6159ac2865f2cf5929da1ada77a6fce3 Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Sat, 4 May 2024 18:19:47 +0530 Subject: [PATCH 3/3] DOC: add SA01 for pandas.Interval.closed --- pandas/_libs/interval.pyx | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index f8ee34e6b9257..251cde71a920d 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -407,7 +407,6 @@ cdef class Interval(IntervalMixin): See Also -------- - Interval.open_left : Boolean inverse of closed_left. Interval.closed_left : Check if the interval is closed on the left side. Interval.closed_right : Check if the interval is closed on the right side. Interval.open_left : Check if the interval is open on the left side.