I have constructed a NumPy array and filled it with data:
data = np.zeros(ndata,dtype=[('datetime',np.dtype(np.datetime64)),\
('Value','<f8'),('Weight','<f8')])
However, now I want to do things like returning just the datetime 'column' or just the values. But this isn't a 2D NumPy array. This is a 1D array of some custom dtype, so I can't do for example:
data[:,0]
I assume this is trivial or I've fundamentally got the wrong idea about how to use NumPy arrays.