29 Oct
2010
29 Oct
'10
6:59 a.m.
<snip>
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 column. Matt
29 Oct
29 Oct
7:06 a.m.
On Oct 29, 2010, at 2:59 PM, Matt Studley wrote:
<snip>
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 column.
For a structured array, yes, you get it.
4927
Age (days ago)
4927
Last active (days ago)
1 comments
2 participants
participants (2)
-
Matt Studley
-
Pierre GM