statsmodels.sandbox.regression.try_catdata.
convertlabels
convert labels based on multiple variables or string labels to unique index labels 0,1,2,…,nk-1 where nk is the number of distinct labels
statsmodels.sandbox.regression.try_catdata.cat2dummy
statsmodels.sandbox.regression.try_catdata.groupsstats_1d