Skip to content

Commit

Permalink
DOC: Docstrings for pandas.Series.str functions (#59506)
Browse files Browse the repository at this point in the history
Docstrings for pandas.Series.str functions

pandas.Series.str.rpartition
pandas.Series.str.rstrip
pandas.Series.str.strip
  • Loading branch information
awojno-bloomberg authored Aug 14, 2024
1 parent 614939a commit 2e80ff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,10 @@ 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.lstrip RT03" \
-i "pandas.Series.str.match RT03" \
-i "pandas.Series.str.normalize RT03,SA01" \
-i "pandas.Series.str.partition RT03" \
-i "pandas.Series.str.repeat SA01" \
-i "pandas.Series.str.replace SA01" \
-i "pandas.Series.str.rpartition RT03" \
-i "pandas.Series.str.rstrip RT03" \
-i "pandas.Series.str.strip RT03" \
-i "pandas.Series.str.wrap RT03,SA01" \
-i "pandas.Series.str.zfill RT03" \
-i "pandas.Series.struct.dtypes SA01" \
Expand Down
3 changes: 3 additions & 0 deletions pandas/core/strings/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,8 @@ def rsplit(self, pat=None, *, n=-1, expand: bool = False):
Returns
-------
DataFrame/MultiIndex or Series/Index of objects
Returns appropriate type based on `expand` parameter with strings
split based on the `sep` parameter.
See Also
--------
Expand Down Expand Up @@ -2127,6 +2129,7 @@ def encode(self, encoding, errors: str = "strict"):
Returns
-------
Series or Index of object
Series or Index with the strings being stripped from the %(side)s.
See Also
--------
Expand Down

0 comments on commit 2e80ff1

Please sign in to comment.