Re: [Numpy-discussion] assign a variable to each column of an array

2007-12-16 Thread Timothy Hochberg
On Dec 16, 2007 7:58 PM, elfnor <[EMAIL PROTECTED]> wrote: > Is there a more concise way of assigning a variable to each column of an > array? > > This works > > x,y,z = X[:,0],X[:,1],X[:,2] > > but seems clumsy. You could try: x, y, z = X.T Although some people might think that's a little obs

[Numpy-discussion] assign a variable to each column of an array

2007-12-16 Thread elfnor
Is there a more concise way of assigning a variable to each column of an array? This works x,y,z = X[:,0],X[:,1],X[:,2] but seems clumsy. ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-dis