pyarrow.compute.DictionaryEncodeOptions — Apache Arrow v20.0.0 (original) (raw)
class pyarrow.compute.DictionaryEncodeOptions(null_encoding='mask')#
Bases: _DictionaryEncodeOptions
Options for dictionary encoding.
Parameters:
null_encodingstr, default “mask”
How to encode nulls in the input. Accepted values are “mask” (null inputs emit a null in the indices array), “encode” (null inputs emit a non-null index pointing to a null value in the dictionary array).
__init__(self, null_encoding='mask')#
Methods
static deserialize(buf)#
Deserialize options for a function.
Parameters:
bufBuffer
The buffer containing the data to deserialize.
serialize(self)#