title: How do I integrate two 1-D data arrays in Python?
body: <p>I have two tabulated data arrays, x and y, and I don't know the function that generated the data. I want to be able to evaluate the integral of the line produced by the data at any point along the x-axis.</p>
  
  <p>Rather than interpolating a piecewise function to the data and then attempting to integrate that, which I am having trouble with, is there something I can use that will simply provide the integral by evaluating the arrays?</p>
  
  <p>When searching for solutions, I have seen references to iPython and Pandas, but I haven't been able to find the parts of those packages that will aid in this task.</p>
  
  <p>If there isn't a way to simply integrate the arrays, could you provide some advice on the best way to handle this task?</p>