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

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

pyarrow.compute.utf8_zero_fill#

pyarrow.compute.utf8_zero_fill(strings, /, width, padding='0', *, options=None, memory_pool=None)#

Left-pad strings to a given width, preserving leading sign characters.

For each string in strings, emit a string of length width by prepending the given padding character (defaults to 0 if not specified). If the string starts with + or -, the sign is preserved and padding occurs after the sign. Null values emit null.

Parameters:
stringsArray-like or scalar-like

Argument to compute function.

widthint

Desired string length.

paddingstr, default 0

Padding character. Should be one Unicode codepoint.

optionspyarrow.compute.ZeroFillOptions, optional

Alternative way of passing options.

memory_poolpyarrow.MemoryPool, optional

If not passed, will allocate memory from the default memory pool.


Web Proxy Viewer  |  New URL  |  Original Page