MCPcopy Create free account
hub / github.com/numpy/numpy / zfill

Method zfill

numpy/core/defchararray.py:2693–2703  ·  view source on GitHub ↗

Return the numeric string left-filled with zeros in a string of length `width`. See Also -------- char.zfill

(self, width)

Source from the content-addressed store, hash-verified

2691 return asarray(upper(self))
2692
2693 def zfill(self, width):
2694 """
2695 Return the numeric string left-filled with zeros in a string of
2696 length `width`.
2697
2698 See Also
2699 --------
2700 char.zfill
2701
2702 """
2703 return asarray(zfill(self, width))
2704
2705 def isnumeric(self):
2706 """

Callers 2

_parse_version_partsFunction · 0.80
binary_reprFunction · 0.80

Calls 2

zfillFunction · 0.85
asarrayFunction · 0.70

Tested by

no test coverage detected