I want to add column of ones to 5x5 matrix on at 0 index. np.append() is working but i search another way.
import numpy as np
arr = np.array(range(25)).reshape(5,5)
ones = np.ones((arr.shape[0],1))
arr_with_ones = np.append(ones, arr, axis=1)
print(arr_with_ones)