SciPy - Curve Fitting and Regression
Why does this code raise an error?
import numpy as np from numpy import polyfit x = np.array([1, 2, 3]) y = np.array([2, 4]) coeffs = polyfit(x, y, 1)
