pyarrow.compute.PadOptions#

class pyarrow.compute.PadOptions(width, padding=' ', lean_left_on_odd_padding=True)#

Bases: _PadOptions

Options for padding strings.

Parameters:
widthint

Desired string length.

paddingstr, default “ “

What to pad the string with. Should be one byte or codepoint.

lean_left_on_odd_paddingbool, default True

What to do if there is an odd number of padding characters (in case of centered padding). Defaults to aligning on the left (i.e. adding the extra padding character on the right).

__init__(self, width, padding=' ', lean_left_on_odd_padding=True)#

Methods

__init__(self, width[, padding, ...])

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