MCPcopy Index your code
hub / github.com/numpy/numpy / zfill

Method zfill

numpy/_core/defchararray.py:1183–1193  ·  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

1181 return asarray(upper(self))
1182
1183 def zfill(self, width):
1184 """
1185 Return the numeric string left-filled with zeros in a string of
1186 length `width`.
1187
1188 See Also
1189 --------
1190 char.zfill
1191
1192 """
1193 return asarray(zfill(self, width))
1194
1195 def isnumeric(self):
1196 """

Callers 3

binary_reprFunction · 0.80
test_zfillMethod · 0.80
_parse_version_partsFunction · 0.80

Calls 2

zfillFunction · 0.85
asarrayFunction · 0.70

Tested by 1

test_zfillMethod · 0.64