Re: [Numpy-discussion] Selection of only a certain number of fields

2009-02-09 Thread Francesc Alted
A Sunday 08 February 2009, Neil escrigué: The first one (and most important IMO), is that newarr continues to be an structured array (BTW, when changed this name from the original record array?), and you can use all the features of these beasts with it. Other reason (albeit a bit

Re: [Numpy-discussion] Selection of only a certain number of fields

2009-02-08 Thread Neil
Francesc Alted faltet at pytables.org writes: What are some common use cases for this feature? I use structured arrays quite a lot, but I haven't found myself wanting something like this. If I do need a subset of a structured array generally I use something like [rec[n] for n in

Re: [Numpy-discussion] Selection of only a certain number of fields

2009-02-07 Thread Neil
Travis E. Oliphant oliphant at enthought.com writes: I've been fairly quiet on this list for awhile due to work and family schedule, but I think about how things can improve regularly.One feature that's been requested by a few people is the ability to select multiple fields from a

Re: [Numpy-discussion] Selection of only a certain number of fields

2009-02-07 Thread Francesc Alted
A Saturday 07 February 2009, Neil escrigué: Travis E. Oliphant oliphant at enthought.com writes: I've been fairly quiet on this list for awhile due to work and family schedule, but I think about how things can improve regularly.One feature that's been requested by a few people is the

Re: [Numpy-discussion] Selection of only a certain number of fields

2009-02-07 Thread Travis E. Oliphant
Francesc Alted wrote: A Saturday 07 February 2009, Neil escrigué: Travis E. Oliphant oliphant at enthought.com writes: I've been fairly quiet on this list for awhile due to work and family schedule, but I think about how things can improve regularly.One feature that's been

Re: [Numpy-discussion] Selection of only a certain number of fields

2009-02-06 Thread Stéfan van der Walt
Hi Travis 2009/2/6 Travis Oliphant oliph...@enthought.com: Thus newarr = arr[['name', 'age']].copy() would be exactly the same size as arr because elements are copied wholesale and each row is a single element in the NumPy array.Some infrastructure would have to be implemented at a

Re: [Numpy-discussion] Selection of only a certain number of fields

2009-02-05 Thread Pierre GM
On Feb 5, 2009, at 6:08 PM, Travis E. Oliphant wrote: Hi all, I've been fairly quiet on this list for awhile due to work and family schedule, but I think about how things can improve regularly.One feature that's been requested by a few people is the ability to select multiple fields

Re: [Numpy-discussion] Selection of only a certain number of fields

2009-02-05 Thread Travis Oliphant
Pierre GM wrote: On Feb 5, 2009, at 6:08 PM, Travis E. Oliphant wrote: Hi all, I've been fairly quiet on this list for awhile due to work and family schedule, but I think about how things can improve regularly.One feature that's been requested by a few people is the ability to

Re: [Numpy-discussion] Selection of only a certain number of fields

2009-02-05 Thread Francesc Alted
A Friday 06 February 2009, Travis Oliphant escrigué: Pierre GM wrote: On Feb 5, 2009, at 6:08 PM, Travis E. Oliphant wrote: Hi all, I've been fairly quiet on this list for awhile due to work and family schedule, but I think about how things can improve regularly.One feature that's