Learn practical skills, build real-world projects, and advance your career
Created 2 years ago
The Numpy array object
NumPy Arrays
python objects:
- high-level number objects: integers, floating point
- containers: lists (costless insertion and append), dictionaries (fast lookup)
Numpy provides:
- extension package to Python for multi-dimensional arrays
- closer to hardware (efficiency)
- designed for scientific computation (convenience)
- 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]