statsmodels/statsmodels — pull request #527 by dengemann (2012-10-08 14:01:45+00:00)
Title: WIP/ENH: adding support for categorial factors

This relates to our recent discussion on the mailing list

- added privat _recode function that internally recodes the x factor
- added additional positional argument, a dict that allows the user to specify the remapping done by _recode
- i would have prefered a kwarg but this however messes up the ax.plot below. The options i see whithin this approach are a) allowing users to optinoally pass a tuple like (x, x_levels). so no additional positional argument is required and b) explicitly passing a dict with plotting parameters instead of **kwargs

Wdyt?