NumPy

NumPy (which is short for “Numerical Python”) is an essential package for performing scientific computing in Python. It provides additional functionality for performing numerical calculations involving collections of values, such as arrays and matrices. NumPy is a critical tool for analyzing and manipulating data in Python, and nearly ever prominent Python package used for Data Science is either build on top of NumPy or intended to work with it.

NumPy is not part of the Python standard library, but does comes packaged with the Anaconda distribution. By convention, it is typically imported under the alias np, as demonstrated below.

import numpy as np

The version of NumPy installed on in an environment can be checked by printing the __version__ variable contained within the package.

print(np.__version__)
1.21.4

Additional Resources

The following resources contain additional information about NumPy.