def calibrate(data): small = min(data) for k in range(len(data)): data[k] -= small # e.g., this zeros out the smallest entry