@@ -1465,19 +1465,21 @@ def str_split(arr, pat=None, n=None):
1465
1465
1466
1466
def str_rsplit (arr , pat = None , n = None ):
1467
1467
"""
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`.
1471
1473
1472
1474
Parameters
1473
1475
----------
1474
1476
pat : string, default None
1475
- Separator to split on. If None, splits on whitespace
1477
+ Separator to split on. If None, splits on whitespace.
1476
1478
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.
1478
1480
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.
1481
1483
1482
1484
Returns
1483
1485
-------
0 commit comments