On 27.08.2014 17:08, phinn stuart wrote: > Hi everyone, how can I convert (1L, 480L, 1440L) shaped numpy array into > (480L, 1440L)? > > Thanks in the advance.
np.squeeze removes empty dimensions: In [2]: np.squeeze(np.ones((1,23,232))).shape Out[2]: (23, 232) _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion