Re: [Numpy-discussion] Issue with converting from numpy record to list/tuple

2007-08-28 Thread Sean Davis
On 8/28/07, Francesc Altet <[EMAIL PROTECTED]> wrote: > > A Monday 27 August 2007, Sean Davis escrigué: > > On 8/27/07, Sean Davis <[EMAIL PROTECTED]> wrote: > > > I have a numpy recarray that I want to load into a database using > > > insert statements. To do so, I need to convert each record to

Re: [Numpy-discussion] Issue with converting from numpy record to list/tuple

2007-08-28 Thread Francesc Altet
A Monday 27 August 2007, Sean Davis escrigué: > On 8/27/07, Sean Davis <[EMAIL PROTECTED]> wrote: > > I have a numpy recarray that I want to load into a database using > > insert statements. To do so, I need to convert each record to a > > tuple. Here is what I get (using psycopg2) > > > > In [1]

Re: [Numpy-discussion] Issue with converting from numpy record to list/tuple

2007-08-27 Thread Sean Davis
On 8/27/07, Sean Davis <[EMAIL PROTECTED]> wrote: > > I have a numpy recarray that I want to load into a database using insert > statements. To do so, I need to convert each record to a tuple. Here is > what I get (using psycopg2) > > In [1]: a[1] > Out[1]: ('5151_0023_0001', 'FORWARD', 'interval

[Numpy-discussion] Issue with converting from numpy record to list/tuple

2007-08-27 Thread Sean Davis
I have a numpy recarray that I want to load into a database using insert statements. To do so, I need to convert each record to a tuple. Here is what I get (using psycopg2) In [1]: a[1] Out[1]: ('5151_0023_0001', 'FORWARD', 'interval rank', 'target_tm:76.00 ;probe_tm:70.90;freq:27.93;count:01;ru