@classmethod
    def from_array(cls, data, **kwargs):
        return Categorical(data, **kwargs)
Make a Categorical type from a single array-like object.
dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical.from_array