numpy.polyfit# numpy.polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False)[source]# Least squares polynomial fit. Note This forms part of the old polynomial API. Since version 1.4, the new polynomial API defined in numpy.polynomial is preferred. A summary of the differences can be found in the transition guide. Fit a polynomial p(x) = p[0] * x**deg + ... + p[deg] of degree deg to points (x