pyarrow.dictionary

pyarrow.dictionary(DataType index_type, Array dict_values, bool ordered=False) → DictionaryType

Dictionary (categorical, or simply encoded) type

Parameters:
Returns:

type (DictionaryType)