I have a numpy array A , such that when i print A it appears:

[[ 10.]
 [ 20.]]

I would like to have a one dimensional array B (obtained from A) such that
B[0] = 10 and B[1]=20. It could be seen as the transpose of A.

How can i obtain B = [10,20]  from A? I tried transpose(1,0) but it doesn't
seem to be useful.

Thanks.



-- 
View this message in context: 
http://old.nabble.com/basic-question-about-numpy-arrays-tp29449184p29449184.html
Sent from the Numpy-discussion mailing list archive at Nabble.com.

_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to