xarray.core.accessor_str.StringAccessor.zfill¶
-
StringAccessor.
zfill
(width)¶ Pad strings in the array by prepending ‘0’ characters.
Strings in the array are padded with ‘0’ characters on the left of the string to reach a total string length width. Strings in the array 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: filled Return type: same type as values