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.
- width
int
Desired string length.
- padding
str
, default “0” Padding character. Should be one Unicode codepoint.
- options
pyarrow.compute.ZeroFillOptions
, optional Alternative way of passing options.
- memory_pool
pyarrow.MemoryPool
, optional If not passed, will allocate memory from the default memory pool.