Categorical.
__array__
The numpy array interface.
A numpy array of either the specified dtype or, if dtype==None (default), the same dtype as categorical.categories.dtype.