I\'m trying to get a best fit line to some data my script generates. This is what I have:
import numpy as np import scipy as sp . . . def func(x, a, b, c):
I had the same problem until I realized I had been using lists instead of Numpy arrays. Converting to arrays fixed it for me.