> ltemp = [ydata[i] - ydata[0] for i in range(ll)]
> ytemp = [ltemp[i] * .001 for i in range(ll)]
> ltemp = [xdata[i] - xdata[0] for i in range(ll)]
> xtemp = [ltemp[i] * .001 for i in range(ll)]
Use the vectorization given by numpy:
ytemp = (ydata - ydata[0]) * 0.001
Below I’ve included the code I ran, reasonably (I think) commented. Note the
reference to the example. The data actually came from a pandas data frame that
was in turn filled from a 100 MB data file that included lots of other data not
needed for this, which was a curve fit to a calibration ru