This function returns the copy of the string with the first letter capitalized.
import numpy as np print np.char.capitalize('hello world')
Its output would be −
Hello world