Re: [Pytables-users] Extended slice notation

2008-11-20 Thread Francesc Alted
A Wednesday 19 November 2008, [EMAIL PROTECTED] escrigué: > Francesc Alted wrote: > > A Tuesday 18 November 2008, Eric Bruning escrigué: > >> If extended slicing isn't supported, is there a better way to deal > >> with sparse indices than: > >> for row_id, datum in zip(row_ids, coldata): > >>

Re: [Pytables-users] Extended slice notation

2008-11-19 Thread AFoglia
Francesc Alted wrote: > A Tuesday 18 November 2008, Eric Bruning escrigué: >> If extended slicing isn't supported, is there a better way to deal >> with sparse indices than: >> for row_id, datum in zip(row_ids, coldata): >> col[row_id] = datum > > Yes, there is. You can make use of the .iter

Re: [Pytables-users] Extended slice notation

2008-11-19 Thread Francesc Alted
Hi Eric, A Tuesday 18 November 2008, Eric Bruning escrigué: > Is the extended slice attribute notation supported? It is mentioned > on the http://www.pytables.org/moin/HintsForSQLUsers#Updatingdata, > and is said to allow writing data to arbitrary row coordinates, like > so: > > rows = [ > ('f

[Pytables-users] Extended slice notation

2008-11-18 Thread Eric Bruning
Is the extended slice attribute notation supported? It is mentioned on the http://www.pytables.org/moin/HintsForSQLUsers#Updatingdata, and is said to allow writing data to arbitrary row coordinates, like so: rows = [ ('foo', 0.0, 0.0, 150.0), ('bar', 0.5, 0.0, 100.0), ('foo', 1.0, 1.0,