NumPy char capitalize

NumPy char capitalize

In this chapter, we will discuss about NumPy char capitalize. 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 

Next Topic – Click Here

This Post Has 2 Comments

Leave a Reply