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

Method center

numpy/core/defchararray.py:2272–2281  ·  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

2270 return asarray(capitalize(self))
2271
2272 def center(self, width, fillchar=' '):
2273 """
2274 Return a copy of `self` with its elements centered in a
2275 string of length `width`.
2276
2277 See Also
2278 --------
2279 center
2280 """
2281 return asarray(center(self, width, fillchar))
2282
2283 def count(self, sub, start=0, end=None):
2284 """

Callers 1

test_centerMethod · 0.45

Calls 2

centerFunction · 0.85
asarrayFunction · 0.70

Tested by 1

test_centerMethod · 0.36