pyarrow.compute.RandomOptions#

class pyarrow.compute.RandomOptions(*, initializer='system')#

Bases: _RandomOptions

Options for random generation.

Parameters:
initializerint or str

How to initialize the underlying random generator. If an integer is given, it is used as a seed. If “system” is given, the random generator is initialized with a system-specific source of (hopefully true) randomness. Other values are invalid.

__init__(self, *, initializer='system')#

Methods

__init__(self, *[, initializer])

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)#