statsmodels.sandbox.regression.try_ols_anova.
data2groupcont
create dummy continuous variable
label or group array
continuous variable
Notes
useful for group specific slope coefficients in regression
statsmodels.sandbox.regression.try_ols_anova.data2dummy
statsmodels.sandbox.regression.try_ols_anova.data2proddummy