NumPy

Previous topic

numpy.char.upper

Next topic

numpy.char.equal

This is documentation for an old release of NumPy (version 1.19). Read this page in the documentation of the latest stable release (version 2.2).

numpy.char.zfill

numpy.char.zfill(a, width)

Return the numeric string left-filled with zeros

Calls str.zfill element-wise.

Parameters
aarray_like, {str, unicode}

Input array.

widthint

Width of string to left-fill elements in a.

Returns
outndarray, {str, unicode}

Output array of str or unicode, depending on input type

See also

str.zfill