From 5591ef31e08b798bea5309c4adaee20423c5e371 Mon Sep 17 00:00:00 2001 From: Katsia <47710336+KatsiarynaDzibrova@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:21:18 +0100 Subject: [PATCH] DOC: Fix pandas.Series.str.index RT03 (#59397) * DOC: fix pandas.Series.str.index RT03 * DOC: Remove pandas.Series.str.index RT03 from ci checks * remove pandas.Series.str.rindex RT03 from ci check --- ci/code_checks.sh | 2 -- pandas/core/strings/accessor.py | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 692b86ec731c9..540bd59cd5924 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -163,7 +163,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.str.center RT03,SA01" \ -i "pandas.Series.str.decode PR07,RT03,SA01" \ -i "pandas.Series.str.encode PR07,RT03,SA01" \ - -i "pandas.Series.str.index RT03" \ -i "pandas.Series.str.ljust RT03,SA01" \ -i "pandas.Series.str.lower RT03" \ -i "pandas.Series.str.lstrip RT03" \ @@ -172,7 +171,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Series.str.partition RT03" \ -i "pandas.Series.str.repeat SA01" \ -i "pandas.Series.str.replace SA01" \ - -i "pandas.Series.str.rindex RT03" \ -i "pandas.Series.str.rjust RT03,SA01" \ -i "pandas.Series.str.rpartition RT03" \ -i "pandas.Series.str.rstrip RT03" \ diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 8e6183c43480f..25fdafa9b8354 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -3092,6 +3092,8 @@ def normalize(self, form): Returns ------- Series or Index of object + Returns a Series or an Index of the %(side)s indexes + in each string of the input. See Also --------