7.18.1.1.9. statsmodels.tools.tools.recipr

statsmodels.tools.tools.recipr(X)[source]

Return the reciprocal of an array, setting all entries less than or equal to 0 to 0. Therefore, it presumes that X should be positive in general.