Re: [Numpy-discussion] ValueError: objects are not aligned

2010-09-08 Thread Rui DaCosta
etchall(), dtype=np.float64).ravel() depends on whether you want to work with 2d or 1d data arrays Josef > Thanks again, > Rui > > ____ > From: "josef.p...@gmail.com" > To: Discussion of Numerical Python > Sent: Wed, September 8, 2010 2:

Re: [Numpy-discussion] ValueError: objects are not aligned

2010-09-08 Thread Bruce Southey
_stack and rowvar=0 should work, but it might be easier to get > rid of the extra dimension that the cursor gives you > > e.g. > rf1 = np.asarray(cursor1.fetchall(), dtype=np.float64).ravel() > > depends on whether you want to work with 2d or 1d data arrays > > Josef > >&

Re: [Numpy-discussion] ValueError: objects are not aligned

2010-09-08 Thread josef . pktd
at64).ravel() depends on whether you want to work with 2d or 1d data arrays Josef > Thanks again, > Rui > > > From: "josef.p...@gmail.com" > To: Discussion of Numerical Python > Sent: Wed, September 8, 2010 2:34:42 PM > Subject: Re: [Numpy-discussion] ValueE

Re: [Numpy-discussion] ValueError: objects are not aligned

2010-09-08 Thread Rui DaCosta
cussion of Numerical Python Sent: Wed, September 8, 2010 2:34:42 PM Subject: Re: [Numpy-discussion] ValueError: objects are not aligned On Wed, Sep 8, 2010 at 8:08 AM, Rui DaCosta wrote: > Thanks for your assistance, > I was following this example: >http://www.scip

Re: [Numpy-discussion] ValueError: objects are not aligned

2010-09-08 Thread josef . pktd
[2, 2]]) Josef > Regards, > Rui > ________________ > From: "josef.p...@gmail.com" > To: Discussion of Numerical Python > Sent: Wed, September 8, 2010 1:09:46 PM > Subject: Re: [Numpy-discussion] ValueError: objects are not aligned > &g

Re: [Numpy-discussion] ValueError: objects are not aligned

2010-09-08 Thread Rui DaCosta
cussion of Numerical Python Sent: Wed, September 8, 2010 1:09:46 PM Subject: Re: [Numpy-discussion] ValueError: objects are not aligned On Wed, Sep 8, 2010 at 5:42 AM, RuiDC wrote: > > I'm getting this error, which must be a simple error in getting the result > from the cursor in

Re: [Numpy-discussion] ValueError: objects are not aligned

2010-09-08 Thread josef . pktd
On Wed, Sep 8, 2010 at 5:42 AM, RuiDC wrote: > > I'm getting this error, which must be a simple error in getting the result > from the cursor in the right shape, how do I get the cursor into the array > as a single dimension?: > >    import numpy as np >    import sqlite3 >    conn = sqlite3.conne

[Numpy-discussion] ValueError: objects are not aligned

2010-09-08 Thread RuiDC
I'm getting this error, which must be a simple error in getting the result from the cursor in the right shape, how do I get the cursor into the array as a single dimension?: import numpy as np import sqlite3 conn = sqlite3.connect("simpledb") cursor1 = conn.execute("select Log