SciPy

numpy.polynomial.polynomial.Polynomial.degree

Polynomial.degree()

The degree of the series.

Notes

New in version 1.5.0.