6.7.13.1.2. 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