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 obscure... -- . __ . |-\ . . [EMAIL PROTECTED]
_______________________________________________ Numpy-discussion mailing list [email protected] http://projects.scipy.org/mailman/listinfo/numpy-discussion
