chararray.
encode
Calls str.encode element-wise.
See also
char.encode
numpy.core.defchararray.chararray.dumps
numpy.core.defchararray.chararray.endswith