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 s

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

2009-02-08 Thread Neil
Francesc Alted 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 i

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 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 r

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 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 ab

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

2009-02-07 Thread Neil
Travis E. Oliphant 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 structured

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 : > 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 fundamental level 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.O

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 abil

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 fi

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

2009-02-05 Thread Travis E. Oliphant
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 from a structured array. Thus, suppose *arr* is a structur