@@ -1349,17 +1349,17 @@ def str_split(arr, pat=None, n=None):
1349
1349
Parameters
1350
1350
----------
1351
1351
pat : str, optional
1352
- String or regular expression to split on; If not specified,
1352
+ String or regular expression to split on; If not specified,
1353
1353
split on whitespace.
1354
1354
n : int, default -1 (all)
1355
- Limit number of splits in output; ``None``, 0 and -1 will
1355
+ Limit number of splits in output; ``None``, 0 and -1 will
1356
1356
be interpreted as return all splits.
1357
1357
expand : bool, default False
1358
1358
Expand the splitted strings into separate columns.
1359
1359
1360
1360
Returns
1361
1361
-------
1362
- Series, Index, DataFrame or MultiIndex
1362
+ Series, Index, DataFrame or MultiIndex
1363
1363
"""
1364
1364
if pat is None :
1365
1365
if n is None or n == 0 :
@@ -1381,7 +1381,7 @@ def str_split(arr, pat=None, n=None):
1381
1381
1382
1382
def str_rsplit (arr , pat = None , n = None ):
1383
1383
"""
1384
- Split strings around given separator/delimiter (starting from
1384
+ Split strings around given separator/delimiter (starting from
1385
1385
the right).
1386
1386
1387
1387
Parameters
@@ -2243,8 +2243,8 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
2243
2243
_shared_docs ['str_split' ] = ("""
2244
2244
Split strings around given separator/delimiter.
2245
2245
2246
- Returns a list of the words from each string in Series/Index,
2247
- split by the given delimiter string, starting at the %(side)s of the
2246
+ Returns a list of the words from each string in Series/Index,
2247
+ split by the given delimiter string, starting at the %(side)s of the
2248
2248
string. Equivalent to :meth:`str.%(method)s`.
2249
2249
2250
2250
Parameters
@@ -2309,8 +2309,8 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
2309
2309
1 [but this is even better]
2310
2310
dtype: object
2311
2311
2312
- When using ``expand=True``, the split and rsplit elements will expand out into
2313
- separate columns.
2312
+ When using ``expand=True``, the split and rsplit elements will
2313
+ expand out into separate columns.
2314
2314
2315
2315
For Series object, output return type is DataFrame.
2316
2316
0 commit comments