Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tut] numpy.char.capitalize
1
numpy.char.capitalize

Code:
numpy.char.capitalize(a)

Original Documentation

Return a copy of a with only the first character of each element capitalized.

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

Code:
str.capitalize


Examples

[Image: image-8.png]

https://repl.it/@finxter/numpycharcapitalize?lite=true

Reply

Users browsing this thread:
1 Guest(s)


Forum Jump: