I want to double integrate the data from a text file. Could someone please help me out? Here is my data. I want the integration of second column:
0.96 2.05
1.52 2.25
2.0 2.36
2.5 2.41
2.96 2.41
3.52 2.43
4.0 2.39
5.04 2.31
6.08 2.25
7.04 2.12
8.08 2.07
from scipy import integrate
import numpy as np
data = np.loadtxt("A_mod_intensity.txt")
xData, yData = np.hsplit(data,2)
x = xData[:,0]
y = yData[:,0]
integrate.simps(y)