I tried to apply shapely, But even after reading the documentation, I wasn't really successful.
I tried for another answer.
Area inside a closed loop curve in python
My implementation was like this.
from shapely.geometry import Point
i = Point(test.Distance.iloc[0],test.Resistance.iloc[0]).buffer(15)
j = Point(mean.Distance.iloc[-1],mean.Resistance.iloc[-1]).buffer(15)
k = i.intersection(j)
k.area
The plot is of discreate data points.
It's not a closed loop, but as you can see I tried to just extend a straight line to connect it back so that it's a closed shape but yet unsuccessful to compute the area.
Thank you in advance
Edit: I solved it.
Just form a polygon using shapely and find the area.
p = Polygon(zip(test.Distance,test.Resistance))
p.area