We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c01e13 commit 982a839Copy full SHA for 982a839
pandas/core/reshape/concat.py
@@ -344,6 +344,20 @@ def concat(
344
Traceback (most recent call last):
345
...
346
ValueError: Indexes have overlapping values: ['a']
347
+
348
+ Append a single row to the end of a ``DataFrame`` object.
349
350
+ >>> df7 = pd.DataFrame({'a': 1, 'b': 2}, index=[0])
351
+ >>> df7
352
+ a b
353
+ 0 1 2
354
+ >>> new_row = pd.Series([3])
355
+ >>> new_row
356
+ 0 3
357
+ >>> pd.concat([df7, new_row.to_frame().T], ignore_index=True)
358
+ a b 0
359
+ 0 1.0 2.0 NaN
360
+ 1 NaN NaN 3.0
361
"""
362
op = _Concatenator(
363
objs,
0 commit comments