7.19.4.13. statsmodels.sandbox.regression.try_ols_anova.data2dummy

statsmodels.sandbox.regression.try_ols_anova.data2dummy(x, returnall=False)[source]

convert array of categories to dummy variables by default drops dummy variable for last category uses ravel, 1d only