From 0bab5c43ea63fab7097fb70cd32fb7803519cc00 Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Sat, 4 May 2024 10:49:28 +0530 Subject: [PATCH 1/2] DOC: add PR01,SA01 for pandas.Index.str and pandas.Series.str --- pandas/core/strings/accessor.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index d274c1d7a5aff..c2165ef614265 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -162,6 +162,16 @@ class StringMethods(NoNewAttributesMixin): Patterned after Python's string methods, with some inspiration from R's stringr package. + Parameters + ---------- + data : Series or Index + The content of the Series or Index. + + See Also + -------- + Series.str : Vectorized string functions for Series. + Index.str : Vectorized string functions for Index. + Examples -------- >>> s = pd.Series(["A_Str_Series"]) From 51a45f9a32ab0cce38d4889b998b123f300c244f Mon Sep 17 00:00:00 2001 From: tuhinsharma121 Date: Sat, 4 May 2024 10:49:46 +0530 Subject: [PATCH 2/2] DOC: remove PR01,SA01 for pandas.Index.str and pandas.Series.str --- ci/code_checks.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 936e3664cfe93..79ab56040c045 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -85,7 +85,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Index.join PR07,RT03,SA01" \ -i "pandas.Index.names GL08" \ -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" \ @@ -240,7 +239,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.sparse.sp_values SA01" \ -i "pandas.Series.sparse.to_coo PR07,RT03,SA01" \ -i "pandas.Series.std PR01,RT03,SA01" \ - -i "pandas.Series.str PR01,SA01" \ -i "pandas.Series.str.capitalize RT03" \ -i "pandas.Series.str.casefold RT03" \ -i "pandas.Series.str.center RT03,SA01" \