In scipy, the error occurs quite often.
>>> import scipy >>> scipy.integrate.trapz(gyroSeries, timeSeries) Traceback (most recent call last
In order to fix the error, add the following line at the top of your script
from scipy import integrate