Possible Duplicate:
numpy: access an array by column
I have a numpy array (numpy is imported as np)
gona = np.array([[ 1,  2,  3],
       [ 4,  5,  6],
       [ 7,  8,  9],
       [10, 11, 12]])
I can get the values of entire column of 1th row by gona[1][:].
array([4, 5, 6])
But if I try to get all values of a particular column of all rows (say I want values of 1st column in every row) I would try the gona[:][1]. But the result I get from this is same as before.
What can be the reason for this? How do I do such a thing in numpy?
 
     
     
     
     
    