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

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.sandbox.regression.try_catdata.convertlabels.html