statsmodels.tools.tools.
recipr
Reciprocal of an array with entries less than or equal to 0 set to 0.
x : array_like
The input array.
ndarray
The array with 0-filled reciprocals.