pyarrow.compute.RandomOptions#

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

Bases:_RandomOptions

Options for random generation.

Parameters:
initializerint orstr

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

staticdeserialize(buf)#

Deserialize options for a function.

Parameters:
bufBuffer

The buffer containing the data to deserialize.

serialize(self)#