Learn practical skills, build real-world projects, and advance your career

The Numpy array object

NumPy Arrays

python objects:

  1. high-level number objects: integers, floating point
  2. containers: lists (costless insertion and append), dictionaries (fast lookup)

Numpy provides:

  1. extension package to Python for multi-dimensional arrays
  2. closer to hardware (efficiency)
  3. designed for scientific computation (convenience)
  4. Also known as array oriented computing
import numpy as np
a = np.array([0, 1, 2, 3])
print(a)

print(np.arange(10))
[0 1 2 3] [0 1 2 3 4 5 6 7 8 9]