NumPy arrays: how to remove extra axes

Huaiyu Zhu hzhu at rocket.knowledgetrack.com
Mon Jun 12 18:24:33 EDT 2000


For arrays in Numeric, is there a general way to remove axes of length 1?
For example I have an array of shape (1,3,1,4) I want to change it to (3,4).
Thanks


Huaiyu Zhu                               hzhu at knowledgetrack.com



More information about the Python-list mailing list