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

Method center

numpy/_core/defchararray.py:761–770  ·  view source on GitHub ↗

Return a copy of `self` with its elements centered in a string of length `width`. See Also -------- center

(self, width, fillchar=' ')

Source from the content-addressed store, hash-verified

759 return asarray(capitalize(self))
760
761 def center(self, width, fillchar=' '):
762 """
763 Return a copy of `self` with its elements centered in a
764 string of length `width`.
765
766 See Also
767 --------
768 center
769 """
770 return asarray(center(self, width, fillchar))
771
772 def count(self, sub, start=0, end=None):
773 """

Callers 6

test_center_promoterFunction · 0.45
test_centerMethod · 0.45
test_centerMethod · 0.45
test_centerMethod · 0.45
test_centerMethod · 0.45

Calls 2

centerFunction · 0.85
asarrayFunction · 0.70

Tested by 6

test_center_promoterFunction · 0.36
test_centerMethod · 0.36
test_centerMethod · 0.36
test_centerMethod · 0.36
test_centerMethod · 0.36