What Is NumPy?

NumPy is a third-party Python library that provides support for large multidimensional arrays and matrices along with a collection of mathematical functions to operate on these elements.

The library relies on well-known packages implemented in another language (e.g. C or Fortran) to perform efficient computations, bringing the user both the expressiveness of Python and a performance similar to Matlab or Fortran.