I create a numpy record array (recarray) as follows:
import numpy as np
recs = [('Bill', '31', 260.0), ('Fred', 15, '145.0')]
r = np.rec.fromrecords(recs, names = 'name, age, weight')
Now I want to alter the column r['name'] so that the values are in uppercase. How do I achieve this?
np.char is what you are looking for.