I would like to convert a NumPy array of integers representing ASCII codes to the corresponding string.
For example ASCII code 97 is equal to character "a"
.
I tried:
from numpy import *
a=array([97, 98, 99])
c = a.astype('string')
print c
which gives:
['9' '9' '9']
but I would like to get the string "abc"
.