NumPy char lower

NumPy char lower

In this chapter, we will discuss about NumPy char lower . This function returns an array with elements converted to lowercase. It calls str.lower for each element.

import numpy as np 
print np.char.lower(['HELLO','WORLD']) 
print np.char.lower('HELLO')

Its output is as follows −

['hello' 'world']
hello

Next Topic – Click Here

This Post Has 2 Comments

Leave a Reply