Skip to content

Commit cca6300

Browse files
obilodeauharisbal
authored and
harisbal
committed
DOC: added a reference to DataFrame assign in concatenate section of merging (pandas-dev#18665)
1 parent c0bd94f commit cca6300

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

doc/source/merging.rst

+7
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,13 @@ the name of the ``Series``.
323323
labels=['df1', 's1'], vertical=False);
324324
plt.close('all');
325325
326+
.. note::
327+
328+
Since we're concatenating a ``Series`` to a ``DataFrame``, we could have
329+
achieved the same result with :meth:`DataFrame.assign`. To concatenate an
330+
arbitrary number of pandas objects (``DataFrame`` or ``Series``), use
331+
``concat``.
332+
326333
If unnamed ``Series`` are passed they will be numbered consecutively.
327334

328335
.. ipython:: python

doc/source/whatsnew/v0.23.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ Documentation Changes
677677
Rewrote some sentences for greater clarity, added more dynamic references
678678
to functions, methods and classes.
679679
(:issue:`18941`, :issue:`18948`, :issue:`18973`, :issue:`19017`)
680-
680+
- Added a reference to :func:`DataFrame.assign` in the concatenate section of the merging documentation (:issue:`18665`)
681681

682682
.. _whatsnew_0230.bug_fixes:
683683

0 commit comments

Comments
 (0)