pyarrow.dictionary

pyarrow.dictionary(index_type, value_type, bool ordered=False) DictionaryType

Dictionary (categorical, or simply encoded) type.

Parameters:
index_typeDataType
value_typeDataType
orderedbool
Returns:
typeDictionaryType