>> How can I do my nice 2d slicing on the latter?
>>
>> array([('a', 2, 3), ('b', 5, 6), ('c', 8, 9)],
>> dtype=[('f0', '|S1'), ('f1', 'Select a column by its name:
>yourarray['f0']
Super!
So I would need to get the dtype object...
myData[ myData.dtype.names[0] ]
in order to index by col
Hi all
first, please forgive me for my ignorance - I am taking my first
stumbling steps with numpy and scipy.
I am having some difficulty with the behaviour of genfromtxt.
s = SIO.StringIO("""1, 2, 3
4, 5, 6
7, 8, 9""")
g= genfromtxt(s, delimiter=', ', dtype=None)
print g[:,0]
This produces th