Skip to content

Commit 2e80ff1

Browse files
DOC: Docstrings for pandas.Series.str functions (#59506)
Docstrings for pandas.Series.str functions pandas.Series.str.rpartition pandas.Series.str.rstrip pandas.Series.str.strip
1 parent 614939a commit 2e80ff1

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

ci/code_checks.sh

-5
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,10 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
158158
-i "pandas.Series.sparse.sp_values SA01" \
159159
-i "pandas.Series.sparse.to_coo PR07,RT03,SA01" \
160160
-i "pandas.Series.std PR01,RT03,SA01" \
161-
-i "pandas.Series.str.lstrip RT03" \
162161
-i "pandas.Series.str.match RT03" \
163162
-i "pandas.Series.str.normalize RT03,SA01" \
164-
-i "pandas.Series.str.partition RT03" \
165163
-i "pandas.Series.str.repeat SA01" \
166164
-i "pandas.Series.str.replace SA01" \
167-
-i "pandas.Series.str.rpartition RT03" \
168-
-i "pandas.Series.str.rstrip RT03" \
169-
-i "pandas.Series.str.strip RT03" \
170165
-i "pandas.Series.str.wrap RT03,SA01" \
171166
-i "pandas.Series.str.zfill RT03" \
172167
-i "pandas.Series.struct.dtypes SA01" \

pandas/core/strings/accessor.py

+3
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,8 @@ def rsplit(self, pat=None, *, n=-1, expand: bool = False):
969969
Returns
970970
-------
971971
DataFrame/MultiIndex or Series/Index of objects
972+
Returns appropriate type based on `expand` parameter with strings
973+
split based on the `sep` parameter.
972974
973975
See Also
974976
--------
@@ -2127,6 +2129,7 @@ def encode(self, encoding, errors: str = "strict"):
21272129
Returns
21282130
-------
21292131
Series or Index of object
2132+
Series or Index with the strings being stripped from the %(side)s.
21302133
21312134
See Also
21322135
--------

0 commit comments

Comments
 (0)