On this page
numpy.char.zfill
char.zfill(a, width)[source]-
Return the numeric string left-filled with zeros
Calls
str.zfillelement-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
© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.20/reference/generated/numpy.char.zfill.html