Skip to content

Commit 92e6ac3

Browse files
committed
DOC: added a reference to DataFrame assign in concatenate section of merging
Because of various stack overflow answers we are directed to the merging page where a link to DataFrame.assign would be better. Adding the reference here will make people's code better. At least it would have for me.
1 parent fdba133 commit 92e6ac3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/source/merging.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ Concatenating with mixed ndims
310310

311311
You can concatenate a mix of Series and DataFrames. The
312312
Series will be transformed to DataFrames with the column name as
313-
the name of the Series.
313+
the name of the Series. To concatenate only one Series it is preferable
314+
to use the DataFrame method :meth:`~pandas.DataFrame.assign`.
314315

315316
.. ipython:: python
316317

doc/source/whatsnew/v0.22.0.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ Performance Improvements
262262
Documentation Changes
263263
~~~~~~~~~~~~~~~~~~~~~
264264

265-
-
265+
- Added a reference to `DataFrame.assign` in the concatenate section of the merging documentation
266266
-
267267
-
268268

0 commit comments

Comments
 (0)