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 9dfef3aCopy full SHA for 9dfef3a
pandas/core/reshape/concat.py
@@ -344,6 +344,22 @@ 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
+ >>> a = pd.DataFrame({"A": 1, "B": 2}, index=[0])
351
+ >>> a
352
+ A B
353
+ 0 1 2
354
+ >>> b = pd.DataFrame({"A": 3}, index=[0])
355
+ >>> b
356
+ A
357
+ 0 3
358
+ >>> for rowIndex, row in b.iterrows():
359
+ >>> print(pd.concat([a, row.to_frame().T], ignore_index=True))
360
361
+ 0 1 2.0
362
+ 1 3 NaN
363
"""
364
op = _Concatenator(
365
objs,
0 commit comments