4 Comments
User's avatar
Aditya Modak's avatar

Highly insightful Avi. Thanks for sharing

Expand full comment
Meursault's avatar

I thought that Pandas used Numpy under the hood. If so how converting pandas column into Numpy to add a row would change the pattern you mention ( reallocation ) ?

Expand full comment
Enes's avatar

Wouldn’t the proposed solution of converting to a dict adding the row and converting back be much slower?

Expand full comment
Mihály Nemes's avatar

Very useful! How did you produce the diagram of the time measurements?

Expand full comment