Skip to content

Commit 1cb4a58

Browse files
committed
Update docstring following validation test
1 parent 97e8775 commit 1cb4a58

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

pandas/core/strings.py

+9-7
Original file line numberDiff line numberDiff line change
@@ -1465,19 +1465,21 @@ def str_split(arr, pat=None, n=None):
14651465

14661466
def str_rsplit(arr, pat=None, n=None):
14671467
"""
1468-
Split each string in the Series/Index by the given delimiter
1469-
string, starting at the end of the string and working to the front.
1470-
Equivalent to :meth:`str.rsplit`.
1468+
Split strings around given separator/delimiter.
1469+
1470+
Returns a list of the words from each string in
1471+
Series/Index, separated by the delimiter string
1472+
(starting from the right). Equivalent to :meth:`str.rsplit`.
14711473
14721474
Parameters
14731475
----------
14741476
pat : string, default None
1475-
Separator to split on. If None, splits on whitespace
1477+
Separator to split on. If None, splits on whitespace.
14761478
n : int, default -1 (all)
1477-
None, 0 and -1 will be interpreted as return all splits
1479+
None, 0 and -1 will be interpreted as return all splits.
14781480
expand : bool, default False
1479-
* If True, return DataFrame/MultiIndex expanding dimensionality.
1480-
* If False, return Series/Index.
1481+
If True, return DataFrame/MultiIndex expanding dimensionality.
1482+
If False, return Series/Index.
14811483
14821484
Returns
14831485
-------

0 commit comments

Comments
 (0)