Say I have the following array:
a = array([(1L, 2.0, 'buckle_my_shoe'), (3L, 4.0, 'margery_door')],
dtype=[('f0', '<i8'), ('f1', '<f8'), ('f2', 'S14')])
How do I access a column?
I can access a row using this syntax:
a[0][:]
but get an error when I try to access a column in the same way.
a[:][0]
Note. This is not a dupe of "How to access the ith column of a NumPy multidimensional array?" since I am using an array of different types.