pydata/pandas — pull request #8937 by JanSchulz (2014-11-29 21:42:38+00:00)
Title: Categorical: let unique only return used categories

Discussion see here: https://github.com/pydata/pandas/issues/8559#issuecomment-64189570