I have the following Array
a = np.array([1, 2, 3, 4, 9, 8, 7, 6])
now I have to add 2/12/22 zeros to add it to a Matrix with 10/20/30 columns.
It should look like that:
a = np.array([1, 2, 3, 4, 9, 8, 7, 6]) ->
a = np.array([1, 2, 3, 4, 0, 0, ..., 0, 0, 9, 8, 7, 6])
Im using np.pad to fill with zeros on the borders of an array, but is there a way to do it the other way around?