Nev045

0

votes
0

answer
4

views

Whilst integrating an array of data, an axis error occured. What is the cause and solution of this error?

I have an array of data labelled y_1, for which I want to compute a definite integral of its square value, however an axis error occurs. I'm using scipy.trapz to integrate the array. I tried to define the axis as zero, however an axis error stating that the 'axis 0 is out of bounds for array of dim...
Nev045