Research data rarely arrives on the grid an analysis needs. np.interp handles the common cases where straight-line interpolation between neighbouring points is acceptable: Reading a value from a ...
How to run a scipy curve fit with curve_fit: model, bounds, weights, reading popt and pcov, and what each error means. The signature on the v1.18.0 reference page is ...