statsmodels.tools.tools.
recipr
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.
statsmodels.tools.tools.rank
statsmodels.tools.tools.recipr0