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

Matthieu Brucher matthieu.brucher at gmail.com
Wed Mar 17 10:41:32 EDT 2010


Hi,

A.shape[1]

2010/3/17 gerardo.berbeglia <gberbeglia at gmail.com>:
>
> 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.
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



-- 
Information System Engineer, Ph.D.
Blog: http://matt.eifelle.com
LinkedIn: http://www.linkedin.com/in/matthieubrucher



More information about the NumPy-Discussion mailing list