numpy.char.
zfill
Return the numeric string left-filled with zeros
Calls str.zfill element-wise.
Input array.
Width of string to left-fill elements in a.
Output array of str or unicode, depending on input type
See also
str.zfill