Python\'s curve_fit calculates the best-fit parameters for a function with a single independent variable, but is there a way, using curve_fit or something else,
curve_fit
Yes, there is: simply give curve_fit a multi-dimensional array for xData.
xData