pyarrow.compute.PadOptions#
- classpyarrow.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 caseof centered padding). Defaults to aligning on the left (i.e. addingthe 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)- staticdeserialize(buf)#
Deserialize options for a function.
- Parameters:
- buf
Buffer
The buffer containing the data to deserialize.
- buf
- serialize(self)#
On this page