import numpy as np a = np.array([[1, 2], [3, 4], [5, 6]]) b = np.insert(a, 0, 0, axis=1) print(b)
Result:
[[0 1 2] [0 3 4] [0 5 6]]