http://pandas-docs.github.io/pandas-docs-travis/user_guide/categorical.html Pandas now has categorical data type.