numpy.char.capitalize(a)
Return a copy of a with only the first character of each element capitalized.
β₯οΈ Info: Are you AI curious but you still have to create real impactful projects? Join our official AI builder club on Skool (only $5): SHIP! - One Project Per Month
Calls str.capitalize element-wise.
For 8-bit strings, this method is locale-dependent.
Parameters:
- a: array_like of str or unicode: Input array of strings to capitalize.
Returns:
- out: ndarray: Output array of str or unicode, depending on input types
See also
Examples
