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
numpy_string_functions.htm
Advertisements