I was able to use the code below to implement the function of this equation
import numpy as np x = pd.Series(data[\'Kin.[Hartree]\']) n = len(x)-1 kite = x-