You can stay in numpy, doing
np.char.mod('%d', a)
This is twice faster than map or list comprehensions for 10 elements, four times faster for 100. This and other string operations are documented here.
You can stay in numpy, doing
np.char.mod('%d', a)
This is twice faster than map or list comprehensions for 10 elements, four times faster for 100. This and other string operations are documented here.