# pandas.Categorical.from_codes¶

classmethod Categorical.from_codes(codes, categories, ordered=False)[source]

Make a Categorical type from codes and categories arrays.

This constructor is useful if you already have codes and categories and so do not need the (computation intensive) factorization step, which is usually done on the constructor.