NumPy

numpy.char.chararray.encodeΒΆ

method