Dictionary (categorical, or simply encoded) type.
DataType
DataType
DictionaryType
Examples
Create an instance of dictionary type:
>>> import pyarrow as pa >>> pa.dictionary(pa.int64(), pa.utf8()) DictionaryType(dictionary<values=string, indices=int64, ordered=0>)
Use dictionary type to create an array:
>>> pa.array(["a", "b", None, "d"], pa.dictionary(pa.int64(), pa.utf8())) <pyarrow.lib.DictionaryArray object at ...> ... -- dictionary: [ "a", "b", "d" ] -- indices: [ 0, 1, null, 2 ]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4