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.rjust

Fills the left side of strings with an arbitrary character.

LiteFrame.str.ljust

Fills the right side of strings with an arbitrary character.

LiteFrame.str.pad

Fills the specified sides of strings with an arbitrary character.

LiteFrame.str.center

Fills both sides of strings with an arbitrary character.

Notes

Differs from str.zfill() which has special handling for ‘+’/’-’ in the string.