def fit(self, x, y, dy, constraints, degree=2):
        w = self._sigma_to_weights(dy)

        return np.polyfit(x, y, degree, w=w)
Fit a ``degree``-th order polynomial to the data.
dataset/ETHPy150Open glue-viz/glue/glue/core/fitters.py/PolynomialFitter.fit