numpy.char.capitalize()


Advertisements


This function returns the copy of the string with the first letter capitalized.

Live Demo
import numpy as np 
print np.char.capitalize('hello world')

Its output would be −

Hello world 

numpy_string_functions.htm

Advertisements