scipy.special.digamma

scipy.special.digamma(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).