numpy.polynomial.legendre.Legendre.basis_name#

атрибут

polynomial.legendre.Legendre.basis_name = 'P'#