12. The “numpy” (Numeric Python) Package

We now come to one of the best parts of Python: packages that perform sophisticated math operations on large amounts of data. The key package that enables many of these abilities is called numpy.

Some of these operations can be written with the core Python language, but many applications run much faster and compactly with help from the numpy package. Statistical analysis can be done with a simple, high-level commands in numpy rather than by writing complex functions, running as much as a hundred times as fast.

Whether you pronounce it “NUM-pee” or “num-PIE,” the numpy package may well become your favorite.

12.1 Overview of the “array,” “numpy,” and “matplotlib” Packages

The next two chapters cover the ...

Get Supercharged Python: Take Your Code to the Next Level, First Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.