maxframe.liteframe.LiteFrame.str.zfill#
- LiteFrame.str.zfill(width: int)#
Pad strings in the Series/Index by prepending ‘0’ characters.
Strings in the Series/Index are padded with ‘0’ characters on the left of the string to reach a total string length width. Strings in the Series/Index with length greater or equal to width are unchanged.
- Parameters:
width (int) – Minimum length of resulting string; strings with length less than width be prepended with ‘0’ characters.
- Returns:
A Series or Index where the strings are prepended with ‘0’ characters.
- Return type:
Series/Index of objects.
See also
LiteFrame.str.rjustFills the left side of strings with an arbitrary character.
LiteFrame.str.ljustFills the right side of strings with an arbitrary character.
LiteFrame.str.padFills the specified sides of strings with an arbitrary character.
LiteFrame.str.centerFills both sides of strings with an arbitrary character.
Notes
Differs from
str.zfill()which has special handling for ‘+’/’-’ in the string.