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

elfnor e.howick@irl.cri...
Sun Dec 16 20:58:29 CST 2007


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.



More information about the Numpy-discussion mailing list