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

Method capitalize

numpy/core/defchararray.py:2260–2270  ·  view source on GitHub ↗

Return a copy of `self` with only the first character of each element capitalized. See Also -------- char.capitalize

(self)

Source from the content-addressed store, hash-verified

2258 argsort.__doc__ = ndarray.argsort.__doc__
2259
2260 def capitalize(self):
2261 """
2262 Return a copy of `self` with only the first character of each element
2263 capitalized.
2264
2265 See Also
2266 --------
2267 char.capitalize
2268
2269 """
2270 return asarray(capitalize(self))
2271
2272 def center(self, width, fillchar=' '):
2273 """

Callers 1

test_capitalizeMethod · 0.80

Calls 2

capitalizeFunction · 0.85
asarrayFunction · 0.70

Tested by 1

test_capitalizeMethod · 0.64