NumPy Array
Fast, fixed-type numerical array — the backbone of scientific Python.
NumPy arrays store homogeneous data in contiguous memory, enabling vectorised operations (no Python loops). Operations like `arr * 2` apply to every element at C speed.
Example
import numpy as np returns = np.array([0.02, -0.01, 0.03]) print(returns.mean())