Numpy-char-lower

提供:Dev Guides
移動先:案内検索

numpy.char.lower()

この関数は、要素を小文字に変換した配列を返します。 各要素に対して str.lower を呼び出します。

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

その出力は次のとおりです-

['hello' 'world']
hello