6.7.12.1.2. statsmodels.sandbox.regression.try_catdata.convertlabels

statsmodels.sandbox.regression.try_catdata.convertlabels(ys, indices=None)[source]

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