-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Document return type from concat #17953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
For a single Series. Closes pandas-dev#17952
pandas/core/reshape/concat.py
Outdated
@@ -66,6 +66,9 @@ def concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False, | |||
Returns | |||
------- | |||
concatenated : object, type of objs | |||
When concatenating all ``Series`` along the index, a ``Series`` is | |||
returned. When ``objs`` includes at least one ``DataFrame`` or when | |||
concatenating along the columns, a ``DataFrame`` is returned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would maybe make the "concatenating along the columns" a separate case (so new sentence). Like "Concatenating along the columns (axis=1) always results in a DataFrame"
Codecov Report
@@ Coverage Diff @@
## master #17953 +/- ##
==========================================
- Coverage 91.23% 91.22% -0.02%
==========================================
Files 163 163
Lines 50113 50113
==========================================
- Hits 45723 45714 -9
- Misses 4390 4399 +9
Continue to review full report at Codecov.
|
lgtm. you might want to also update merge.rst (it shows the doc-string there as well) |
* DOC: Document return type from concat For a single Series. Closes pandas-dev#17952 * Reword
* DOC: Document return type from concat For a single Series. Closes pandas-dev#17952 * Reword
For a single Series with axis=1.
Closes #17952