If someone could help with this, I'd be very grateful as it's been driving me a bit crazy for a couple of hours!
I have an ndarray as follows:
array([[[0, 0],
[0, 2],
[0, 4]],
[[1, 0],
[1, 2],
[1, 4]]])
I would like to convert this to a record array:
array([[(0, 0),
(0, 2),
(0, 4)],
[(1, 0),
(1, 2),
(1, 4)]],
dtype=[('x', '<i4'), ('y', '<i4')])