SciPy

numpy.chararray.encode

chararray.encode(encoding=None, errors=None)[source]

Calls str.encode element-wise.

See also

char.encode