Nishant Sharma
Nishant Sharma

Reputation: 371

Performance consideration pandas concat append

I have a pandas dataframe created . Now, I have to keep incrementally adding rows to this dataframe . What should I use concat, append or any other? . I am asking this for performance considerations to be taken into account when doing this operation.

And what are the thumb rules to be taken into account when using concat or append operations ?

Upvotes: 1

Views: 4974

Answers (1)

Andriy Ivaneyko
Andriy Ivaneyko

Reputation: 22051

Concat is faster or equal to append. See existed SO question Pandas DataFrame concat vs append

It contains timeit metrics, code sample and description of why concat is faster.

Upvotes: 1

Related Questions