I'm trying to do this:
h = [0.2, 0.2, 0.2, 0.2, 0.2]
Y = np.convolve(Y, h, "same")
Y looks like this:

While doing this I get this error:
ValueError: object too deep for desired array
Why is this?
My guess is because somehow the convolve function does not see Y as a 1D array.