11 Numpy#
The NumPy package provides us with arrays and matrices (efficient data structures), special functions, random number generators, and more.
The documentation for the SciPy, NumPy and many other scientific packages can be found here: https://www.scipy.org.
Installing NumPy#
If you don’t already have it installed, then use the command:
$ conda install numpy
if you have Anaconda installed, or
$ pip install numpy
otherwise.
Importing NumPy#
The standard way to import NumPy is using the alternative name np
:
import numpy as np