Re: [Numpy-discussion] Dict of lists to numpy recarray

2007-08-24 Thread Tom Denniston
Try itertools.izipping the lists and then use numpy.fromiter. On 8/24/07, Sean Davis <[EMAIL PROTECTED]> wrote: > > > On 8/24/07, Sean Davis <[EMAIL PROTECTED]> wrote: > > I have a simple question (I assume), but I can't quite get a handle on the > answer. I have a dict with each member a list ha

Re: [Numpy-discussion] Dict of lists to numpy recarray

2007-08-24 Thread Sean Davis
On 8/24/07, Sean Davis <[EMAIL PROTECTED]> wrote: > > I have a simple question (I assume), but I can't quite get a handle on the > answer. I have a dict with each member a list having a long (>5M > elements). I would like to convert that into a numpy recarray. So far, my > only thought is to loo

[Numpy-discussion] Dict of lists to numpy recarray

2007-08-24 Thread Sean Davis
I have a simple question (I assume), but I can't quite get a handle on the answer. I have a dict with each member a list having a long (>5M elements). I would like to convert that into a numpy recarray. So far, my only thought is to loop over the length of the lists and convert to a list of tupl