Skip to content

Commit 23ada72

Browse files
committed
Modified 'See also'
1 parent 4b92d03 commit 23ada72

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/core/strings.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,8 +2245,7 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
22452245
22462246
See Also
22472247
--------
2248-
split : Splits string at the first occurrence of delimiter
2249-
rsplit : Splits string at the last occurrence of delimiter
2248+
%(also)s
22502249
22512250
Examples
22522251
--------
@@ -2322,15 +2321,17 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
23222321

23232322
@Appender(_shared_docs['str_split'] % {
23242323
'side': 'beginning',
2325-
'method': 'split'
2324+
'method': 'split',
2325+
'also': 'rsplit : Splits string at the last occurrence of delimiter'
23262326
})
23272327
def split(self, pat=None, n=-1, expand=False):
23282328
result = str_split(self._data, pat, n=n)
23292329
return self._wrap_result(result, expand=expand)
23302330

23312331
@Appender(_shared_docs['str_split'] % {
23322332
'side': 'end',
2333-
'method': 'rsplit'
2333+
'method': 'rsplit',
2334+
'also': 'split : Splits string at the first occurrence of delimiter'
23342335
})
23352336
def rsplit(self, pat=None, n=-1, expand=False):
23362337
result = str_rsplit(self._data, pat, n=n)

0 commit comments

Comments
 (0)