[Numpy-discussion] dimension along axis?

Grissiom chaos.proton@gmail....
Mon Apr 13 20:40:11 CDT 2009

Hi all,

It there a convenience way to get dimension along an axis? Say I have two

li1 = np.array([2,3,4])
li2 = np.array([[2,3,4],[5,6,7]])

I know my list is in C order so the two array is the same in someway. But
li1.shape will give (3, ) and li2.shape will give (2,3). "3" appear in
different position so it's inconvenient to identify them. Is there anyway to
get dimension along axis? (In this case should be axis0)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090414/cd0f693f/attachment.html 

More information about the Numpy-discussion mailing list