[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/pyarrow.compute.ZeroFillOptions.html [Back]  [Original]

pyarrow.compute.ZeroFillOptions — Apache Arrow v25.0.1
Back to top
Search the docs ...:

pyarrow.compute.ZeroFillOptions#

class pyarrow.compute.ZeroFillOptions(width, padding='0')#

Bases: _ZeroFillOptions

Options for utf8_zero_fill.

Parameters:
widthint

Desired string length.

paddingstr, default 0

Padding character. Should be one Unicode codepoint.

Examples

>>> import pyarrow as pa
>>> import pyarrow.compute as pc
>>> arr = pa.array(["1", "-2", "+3"])
>>> opts = pc.ZeroFillOptions(width=4)
>>> pc.utf8_zero_fill(arr, options=opts).to_pylist()
['0001', '-002', '+003']
__init__(self, width, padding='0')#

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

Web Proxy Viewer  |  New URL  |  Original Page