title: Reconstruct a categorical variable from dummies in pandas
body: <p><code>pd.get_dummies</code> allows to convert a categorical variable into dummy variables. Besides the fact that it's trivial to reconstruct the categorical variable, is there a preferred/quick way to do it?</p>