I used the np.trapz to calculate the area under a time series and the value appears to be different from what I get from manual calculation.
np.trapz