class pandas.Categorical(values, categories=None, ordered=False, name=None, fastpath=False) [source]
Represents a categorical variable in classic R / S-plus fashion Categoricals can only take on only a limited, and usually fixed, number of possible values (categories). In contrast to statistical categorical variables, a Categorical might have an order, but numerical operations (additions, divisions, ...) are not possible. All values of the Categorical are either in categories or np.nan. Ass