SyntaxFix
Write A Post
Hire A Developer
Questions
np.convolve() takes one dimension array. You need to check the input and convert it into 1D.
np.convolve()
You can use the np.ravel(), to convert the array to one dimension.
np.ravel()