SciPy

numpy.polynomial.legendre.Legendre.degree

Legendre.degree()

The degree of the series.

Notes

New in version 1.5.0.