scipy.special.psi

scipy.special.psi(x[, out]) = <ufunc 'psi'>

psi(z)

Digamma function

The derivative of the logarithm of the gamma function evaluated at z (also called the digamma function).