numpy.char.lower()


Advertisements


This function returns an array with elements converted to lowercase. It calls str.lower for each element.

Live Demo
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