pyarrow.compute.DictionaryEncodeOptions¶
- class pyarrow.compute.DictionaryEncodeOptions(null_encoding='mask')¶
Bases:
_DictionaryEncodeOptionsOptions for dictionary encoding.
- Parameters:
- null_encoding
str, 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).
- null_encoding
- __init__(self, null_encoding='mask')¶
Methods
__init__(self[, null_encoding])deserialize(buf)Deserialize options for a function.
serialize(self)- static deserialize(buf)¶
Deserialize options for a function.
- Parameters:
- buf
Buffer The buffer containing the data to deserialize.
- buf
- serialize(self)¶