Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
!pip install numpy
Requirement already satisfied: numpy in /opt/conda/lib/python3.8/site-packages (1.19.2)
import numpy as np
arr=np.array([[1,2,3],
[1,2,3],
[1,2,3]])
arr
array([[1, 2, 3],
[1, 2, 3],
[1, 2, 3]])
np.insert(arr, 0, 0 )
array([0, 1, 2, 3, 1, 2, 3, 1, 2, 3])