[Numpy-discussion] size of a specific dimension of a numpy array

gerardo.berbeglia gberbeglia@gmail....
Wed Mar 17 09:40:14 CDT 2010


I would like to know a simple way to know the size of a given dimension of a
numpy array.

Example
A = numpy.zeros((10,20,30),float)
The size of the second dimension of the array A is 20.

Thanks.




-- 
View this message in context: http://old.nabble.com/size-of-a-specific-dimension-of-a-numpy-array-tp27933090p27933090.html
Sent from the Numpy-discussion mailing list archive at Nabble.com.



More information about the NumPy-Discussion mailing list