Re: [Pytables-users] sorting a table

2010-04-29 Thread Francesc Alted
A Thursday 29 April 2010 12:31:58 escriguéreu: > On 29 April 2010 19:23, Francesc Alted wrote: > > A Thursday 29 April 2010 09:05:15 Ernesto escrigué: > >> In the case I decide to use the Pro version of Pytables is > >> there an academic license available? Thank you again, > > > > Not for persona

Re: [Pytables-users] sorting a table

2010-04-29 Thread Tony Theodore
On 29 April 2010 19:23, Francesc Alted wrote: > A Thursday 29 April 2010 09:05:15 Ernesto escrigué: >> In the case I decide to use the Pro version of Pytables is >>  there an academic license available? Thank you again, > > Not for personal license (95 EUR is low enough already).  But if you are >

Re: [Pytables-users] sorting a table

2010-04-29 Thread Francesc Alted
A Thursday 29 April 2010 09:05:15 Ernesto escrigué: > In the case I decide to use the Pro version of Pytables is > there an academic license available? Thank you again, Not for personal license (95 EUR is low enough already). But if you are interested on a site license, we can talk. -- France

Re: [Pytables-users] sorting a table

2010-04-29 Thread Francesc Alted
A Thursday 29 April 2010 09:20:16 Ernesto escrigué: > I'm sorry, I have a last question that it may be close related to what I'm > doing. In practice I need to extract a subset of rows from a tables and > then sort them according to specific criteria. Of course the best thing > should be a pre-

Re: [Pytables-users] sorting a table

2010-04-29 Thread Ernesto
I'm sorry, I have a last question that it may be close related to what I'm doing. In practice I need to extract a subset of rows from a tables and then sort them according to specific criteria. Of course the best thing should be a pre-sorting of the table before the extraction in order to get a

Re: [Pytables-users] sorting a table

2010-04-29 Thread Ernesto
A Wednesday 28 April 2010 21:11:56 Francesc Alted escrigué: >> If you want to go Pro, you may want to use plain NumPy for doing this. > I wanted to say "don't want to go Pro", of course :-) OK. Could you please provide me a simple example on how to use NunPy for table sorting? In the case I de

Re: [Pytables-users] sorting a table

2010-04-28 Thread Ernesto
Thanks a lot, Ernesto > This is a common bug: You are storing the iterator rather than what it points > to. Try doing > > results=[row[:] for row in table.where('(qual > 1) & (qual < 10)')] > This will copy out all of the columns of the row. > > (At least, I believe that's the correct syntax

Re: [Pytables-users] sorting a table

2010-04-28 Thread Francesc Alted
A Wednesday 28 April 2010 21:11:56 Francesc Alted escrigué: > If you want to go Pro, you may want to use plain NumPy for doing this. I wanted to say "don't want to go Pro", of course :-) -- Francesc Alted -- __

Re: [Pytables-users] sorting a table

2010-04-28 Thread Francesc Alted
A Wednesday 28 April 2010 20:22:52 Ernesto escrigué: > Hi Francesc, thank you for your reply. > > > The first column contains an integer. Now I'd like to sort my table > > according to numbers of the first column. Is there a way to perform this > > action? > > > > Yes. The simplest way is by se

Re: [Pytables-users] sorting a table

2010-04-28 Thread Francesc Alted
Ciao Ernesto, A Wednesday 28 April 2010 16:04:06 Ernesto escrigué: > Hi all, > > I have a table containing a lot of data (millions of rows). > The structure is like the following example: > > (22777420, 'G', 18, '-') > (22777421, 'G', 36, '-') > (22777422, 'C', 29, '-') > (22777423, 'C', 17, '-'