Speed Testing Pandas vs. Numpy

Is Numpy Always Faster?

Eunjoo Byeon
Towards Data Science
4 min readDec 14, 2020

--

Photo by Tim Gouw on Unsplash

For Data Scientists, Pandas and Numpy are both essential tools in Python. We know Numpy runs vector and matrix operations very efficiently, while Pandas provides the R-like data frames allowing intuitive tabular data analysis. A consensus is that Numpy is more optimized for arithmetic computations. Is this always the case? I decided to put them to the test.

--

--