I am trying to fit a curve/function to a set of 2D points (x,y).
I am using sp.optimize.curve_fit for that purpose.
sp.optimize.curve_fit
I am trying to fit this object