2 ms·
> Both of these behaviours make perfect sense if you think about them in terms of expected Python and Numpy which Pandas is built on. My PyData London presenta
by stevesimmons 10y ago
> Both of these behaviours make perfect sense if you think about them in terms of expected Python and Numpy which Pandas is built on.
My PyData London presentation "Pandas from the Inside" [1, 2] explains in detail how pandas gets its speed from numpy, with benchmarks comparing slow vs fast ways to do common operations. Column-wise operations can be three orders of magnitude faster than iterating by row.
[1] https://www.youtube.com/watch?v=Dr3Hv7aUkmU https://www.youtube.com/watch?v=Dr3Hv7aUkmU
[2] https://github.com/SteveSimmons/PyData-PandasFromTheInside https://github.com/SteveSimmons/PyData-PandasFromTheInside