statsmodels.tools.tools.
recipr0
Return the reciprocal of an array, setting all entries equal to 0 as 0. It does not assume that X should be positive in general.
statsmodels.tools.tools.recipr
statsmodels.tools.tools.unsqueeze