Pad each string 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. If
(self, width: int | Any)
| 1425 | return self._padder(func=func, width=width, fillchar=fillchar) |
| 1426 | |
| 1427 | def zfill(self, width: int | Any) -> T_DataArray: |
| 1428 | """ |
| 1429 | Pad each string in the array by prepending '0' characters. |
| 1430 | |
| 1431 | Strings in the array are padded with '0' characters on the |
| 1432 | left of the string to reach a total string length `width`. Strings |
| 1433 | in the array with length greater or equal to `width` are unchanged. |
| 1434 | |
| 1435 | If `width` is array-like, it is broadcast against the array and applied |
| 1436 | elementwise. |
| 1437 | |
| 1438 | Parameters |
| 1439 | ---------- |
| 1440 | width : int or array-like of int |
| 1441 | Minimum length of resulting string; strings with length less |
| 1442 | than `width` be prepended with '0' characters. If array-like, it is broadcast. |
| 1443 | |
| 1444 | Returns |
| 1445 | ------- |
| 1446 | filled : same type as values |
| 1447 | """ |
| 1448 | return self.rjust(width, fillchar="0") |
| 1449 | |
| 1450 | def contains( |
| 1451 | self, |