Skip to content

Commit b3215b5

Browse files
DOC: Fix RT03 for pandas.Series.str.find (#59394)
* fix RT03 for pandas.Series.str.find * remove check from code_checks.sh * Remove pandas.Series.str.rfind RT03 from ci
1 parent b6317f2 commit b3215b5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

ci/code_checks.sh

-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
165165
-i "pandas.Series.str.center RT03,SA01" \
166166
-i "pandas.Series.str.decode PR07,RT03,SA01" \
167167
-i "pandas.Series.str.encode PR07,RT03,SA01" \
168-
-i "pandas.Series.str.find RT03" \
169168
-i "pandas.Series.str.fullmatch RT03" \
170169
-i "pandas.Series.str.get RT03,SA01" \
171170
-i "pandas.Series.str.index RT03" \
@@ -177,7 +176,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
177176
-i "pandas.Series.str.partition RT03" \
178177
-i "pandas.Series.str.repeat SA01" \
179178
-i "pandas.Series.str.replace SA01" \
180-
-i "pandas.Series.str.rfind RT03" \
181179
-i "pandas.Series.str.rindex RT03" \
182180
-i "pandas.Series.str.rjust RT03,SA01" \
183181
-i "pandas.Series.str.rpartition RT03" \

pandas/core/strings/accessor.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -2971,6 +2971,9 @@ def extractall(self, pat, flags: int = 0) -> DataFrame:
29712971
Returns
29722972
-------
29732973
Series or Index of int.
2974+
A Series (if the input is a Series) or an Index (if the input is an
2975+
Index) of the %(side)s indexes corresponding to the positions where the
2976+
substring is found in each string of the input.
29742977
29752978
See Also
29762979
--------
@@ -2980,9 +2983,9 @@ def extractall(self, pat, flags: int = 0) -> DataFrame:
29802983
--------
29812984
For Series.str.find:
29822985
2983-
>>> ser = pd.Series(["cow_", "duck_", "do_ve"])
2986+
>>> ser = pd.Series(["_cow_", "duck_", "do_v_e"])
29842987
>>> ser.str.find("_")
2985-
0 3
2988+
0 0
29862989
1 4
29872990
2 2
29882991
dtype: int64

0 commit comments

Comments
 (0)