pyarrow.compute.PadOptions#
- class pyarrow.compute.PadOptions(width, padding=' ', lean_left_on_odd_padding=True)#
Bases:
_PadOptions
Options for padding strings.
- Parameters:
- width
int
Desired string length.
- padding
str
, 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).
- width
- __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:
- buf
Buffer
The buffer containing the data to deserialize.
- buf
- serialize(self)#