pyarrow.compute.PadOptions#

classpyarrow.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, defaultTrue

What to do if there is an odd number of padding characters (in caseof centered padding). Defaults to aligning on the left (i.e. addingthe 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)

staticdeserialize(buf)#

Deserialize options for a function.

Parameters:
bufBuffer

The buffer containing the data to deserialize.

serialize(self)#