Lesson 6 of 60
pythonIntroduction to NumPy
15 minutes
Course progress10%
Introduction to NumPy
NumPy (Numerical Python) provides the foundational n‑dimensional array object that powers most scientific Python libraries.
Installing NumPy
pip install numpy
First array
import numpy as np
# Create a 1‑D array from a Python list
arr = np.array([1, , , ])
(arr)
(, arr.shape)
(, arr.dtype)