pydata/pandas — pull request #7041 by sinhrks (2014-05-05 11:45:58+00:00)
Title: BUG: unstack fails in PeriodIndex

Closes #4342.

Also changed `Categorical` and `PeriodIndex.factorize` to make index sorted like other indexes do.