NumPy Basics — a practical guide to NumPy basics with clear examples you can reuse in real projects.
Python Tutorial Series (87/95). Prefer one article? Read the complete Python tutorial.
Short description
NumPy arrays support vectorized math — much faster than Python loops for large numeric data.
NumPy array
# pip install numpy
import numpy as np
a = np.array([1, 2, 3, 4])
print(a * 2)
print(a.mean(), a.max())