pandas.Series.str.zfill

Series.str.zfill(width)

” Filling left side with 0

Parameters:

width : int

Minimum width of resulting string; additional characters will be filled with 0

Returns:

filled : array