Skip to content

Commit 0c65c57

Browse files
h-vetinarijorisvandenbossche
authored andcommitted
DOC: fix mistake in Series.str.cat (pandas-dev#21330)
1 parent fbb47d6 commit 0c65c57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/strings.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2172,9 +2172,9 @@ def cat(self, others=None, sep=None, na_rep=None, join=None):
21722172
21732173
Returns
21742174
-------
2175-
concat : str if `other is None`, Series/Index of objects if `others is
2176-
not None`. In the latter case, the result will remain categorical
2177-
if the calling Series/Index is categorical.
2175+
concat : str or Series/Index of objects
2176+
If `others` is None, `str` is returned, otherwise a `Series/Index`
2177+
(same type as caller) of objects is returned.
21782178
21792179
See Also
21802180
--------

0 commit comments

Comments
 (0)