Skip to content

Commit 6a94518

Browse files
DOC: Document return type from concat (#17953)
* DOC: Document return type from concat For a single Series. Closes #17952 * Reword
1 parent 6779ac0 commit 6a94518

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/core/reshape/concat.py

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ def concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False,
6666
Returns
6767
-------
6868
concatenated : object, type of objs
69+
When concatenating all ``Series`` along the index (axis=0), a
70+
``Series`` is returned. When ``objs`` contains at least one
71+
``DataFrame``, a ``DataFrame`` is returned. When concatenating along
72+
the columns (axis=1), a ``DataFrame`` is returned.
6973
7074
Notes
7175
-----

0 commit comments

Comments
 (0)