Say Goodbye to Loops and Hello to Optimization

Employing NumPy to Optimize Python Code

Andrew Udell
Towards Data Science
6 min readJan 13, 2021

--

Photo by 𝓴𝓘𝓡𝓚 𝕝𝔸𝕀 on Unsplash

While Python remains easy to use, quick to learn, and offers an overabundance of external libraries that can do almost anything, it has one critical weakness: it’s slow.

Of course, to the human eye, its sluggishness seems negligible. Usually Python only lags behind other programming languages…

--

--