pyarrow.compute.DictionaryEncodeOptions#

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

__init__(self[, null_encoding])

deserialize(buf)

Deserialize options for a function.

serialize(self)

static deserialize(buf)#

Deserialize options for a function.

Parameters:
bufBuffer

The buffer containing the data to deserialize.

serialize(self)#