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

2010-03-17 Thread gerardo.berbeglia
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:

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

2010-03-17 Thread Matthieu Brucher
Hi, A.shape[1] 2010/3/17 gerardo.berbeglia gberbeg...@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