@@ -2243,7 +2243,7 @@ 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
- Splits the string in the Series/Index from the %(side)s,
2246
+ Splits the string in the Series/Index from the %(side)s,
2247
2247
at the specified delimiter string.Equivalent to :meth:`str.%(method)s`.
2248
2248
2249
2249
Parameters
@@ -2287,12 +2287,12 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
2287
2287
""" )
2288
2288
2289
2289
@Appender (_shared_docs ['str_split' ] % {
2290
- 'side' :'beginning' ,
2291
- 'method' :'split' ,
2292
- 'also' : 'rsplit : Split the string at the last occurrence of delimiter' ,
2293
- 'example' :
2294
- """>>> s = pd.Series(["this is good text", "but this is even better"])
2295
-
2290
+ 'side' : 'beginning' ,
2291
+ 'method' : 'split' ,
2292
+ 'also' : 'rsplit : Splits string at the last occurrence of delimiter' ,
2293
+ 'example' :
2294
+ """>>> s = pd.Series(["this is good text", "but this is even better"])
2295
+
2296
2296
By default, split will return an object of the same size
2297
2297
having lists containing the split elements
2298
2298
@@ -2343,12 +2343,12 @@ def split(self, pat=None, n=-1, expand=False):
2343
2343
return self ._wrap_result (result , expand = expand )
2344
2344
2345
2345
@Appender (_shared_docs ['str_split' ] % {
2346
- 'side' :'end' ,
2347
- 'method' :'rsplit' ,
2348
- 'also' : 'split : Split the string at the first occurrence of delimiter' ,
2346
+ 'side' : 'end' ,
2347
+ 'method' : 'rsplit' ,
2348
+ 'also' : 'split : Splits string at the first occurrence of delimiter' ,
2349
2349
'example' :
2350
2350
""">>> s = pd.Series(["this is good text", "but this is even better"])
2351
-
2351
+
2352
2352
By default, rsplit will return an object of the same size
2353
2353
having lists containing the split elements
2354
2354
@@ -2378,7 +2378,7 @@ def split(self, pat=None, n=-1, expand=False):
2378
2378
0 1 2 3
2379
2379
0 this is good text
2380
2380
1 but this is even better
2381
- 2 NaN NaN NaN NaN """ })
2381
+ 2 NaN NaN NaN NaN """ })
2382
2382
def rsplit (self , pat = None , n = - 1 , expand = False ):
2383
2383
result = str_rsplit (self ._data , pat , n = n )
2384
2384
return self ._wrap_result (result , expand = expand )
0 commit comments