From: Erin S. <eri...@gm...> - 2006-11-13 00:50:42
|
On 11/12/06, Pierre GM <pgm...@gm...> wrote: > > 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). > That worked as advertised. Thanks. Erin |