April 2018
Beginner to intermediate
300 pages
7h 34m
English
NumPy allows the creation of n-dimensional arrays, which is where the name of the data type, numpy.ndarray, comes from. It handles many sophisticated scientific and matrix operations. It provides many linear algebra and random number functionalities.
NumPy lies at the core of many calculations that computationally enable Matplotlib and many other Python packages. It is therefore a dependency for many common packages and often comes along with Python distributions. For instance, it provides the fundamental data structure for SciPy, a package that handles statistical calculations useful in science and many other areas.
To import NumPy, input this:
import numpy as np
To create a NumPy array from lists, use the following:
x = np
Read now
Unlock full access