numpy.char.upper ()

Cette fonction appelle str.upper fonction sur chaque élément d'un tableau pour renvoyer les éléments du tableau en majuscules.

import numpy as np 
print np.char.upper('hello') 
print np.char.upper(['hello','world'])

Voici sa sortie -

HELLO
['HELLO' 'WORLD']