pyarrow.dictionary

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

Dictionary (categorical, or simply encoded) type

Parameters:
  • index_type (DataType) –
  • dictionary (Array) –
  • ordered (boolean) –
Returns:

type (DictionaryType)