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

Method capitalize

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

747 argsort.__doc__ = ndarray.argsort.__doc__
748
749 def capitalize(self):
750 """
751 Return a copy of `self` with only the first character of each element
752 capitalized.
753
754 See Also
755 --------
756 char.capitalize
757
758 """
759 return asarray(capitalize(self))
760
761 def center(self, width, fillchar=' '):
762 """

Callers 1

test_capitalizeMethod · 0.80

Calls 2

capitalizeFunction · 0.85
asarrayFunction · 0.70

Tested by 1

test_capitalizeMethod · 0.64