numpy.char.title()


Advertisements


This function returns a title cased version of the input string with the first letter of each word capitalized.

Live Demo
import numpy as np 
print np.char.title('hello how are you?')

Its output would be as follows −

Hello How Are You?

numpy_string_functions.htm

Advertisements