I am trying to merge a sliced array to a list in Python but i get an
error: ValueError: operands could not be broadcast together with shapes `(4,)` `(2,)` .
This is my code:
y = np.array([5,3,2,4,6,1])
row = y[2:6] + np.array([0,0])
I am expecting to get a 2-item shifted vector to the left and last 2 items being assigned to 0.