From: Pierre GM <pgm...@gm...> - 2006-11-13 00:15:02
|
You could try the fromarrays function of numpy.core.records >>> mydescriptor = {'names': (a','b','c','d'), 'formats':('f4', 'f4', 'f4', 'f4')} >>> a = N.core.records.fromarrays(N.transpose(yourlist), dtype=mydescriptor) The 'transpose' function ensures that 'fromarrays' sees 4 arrays (one for each column). |