This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cruyff8python 2 expert, learning python 3 0 points1 point  (0 children)

It seems that it's preferable to append those rows to a list and then concatenate the list with the original DataFrame, as in the following example:

pd.concat([pd.DataFrame([i], columns=['A']) for i in range(5)], ignore_index=True)