for i, element in enumerate(data): data[i][1] = (data[i][1]-np.mean(data[i][1]))/np.mean(data[i][1])