Skip to content

Commit 6535292

Browse files
committed
Updated docstring
1 parent 1183c2e commit 6535292

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pandas/core/strings.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,7 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
22432243
_shared_docs['str_split'] = ("""
22442244
Split strings around given separator/delimiter.
22452245
2246-
Splits the string in the Series/Index from the %(side)s,
2246+
Splits the string in the Series/Index from the %(side)s,
22472247
at the specified delimiter string.Equivalent to :meth:`str.%(method)s`.
22482248
22492249
Parameters
@@ -2287,12 +2287,12 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
22872287
""")
22882288

22892289
@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+
22962296
By default, split will return an object of the same size
22972297
having lists containing the split elements
22982298
@@ -2343,12 +2343,12 @@ def split(self, pat=None, n=-1, expand=False):
23432343
return self._wrap_result(result, expand=expand)
23442344

23452345
@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',
23492349
'example':
23502350
""">>> s = pd.Series(["this is good text", "but this is even better"])
2351-
2351+
23522352
By default, rsplit will return an object of the same size
23532353
having lists containing the split elements
23542354
@@ -2378,7 +2378,7 @@ def split(self, pat=None, n=-1, expand=False):
23782378
0 1 2 3
23792379
0 this is good text
23802380
1 but this is even better
2381-
2 NaN NaN NaN NaN """ })
2381+
2 NaN NaN NaN NaN """})
23822382
def rsplit(self, pat=None, n=-1, expand=False):
23832383
result = str_rsplit(self._data, pat, n=n)
23842384
return self._wrap_result(result, expand=expand)

0 commit comments

Comments
 (0)