Skip to content

Commit e5e36cc

Browse files
fix RT03 for pandas.Series.str.find
1 parent 849016c commit e5e36cc

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pandas/core/strings/accessor.py

Lines changed: 5 additions & 2 deletions
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)