method

ndarray.squeeze(axis=None)#

Remove axes of length one from a.

Refer to numpy.squeeze for full documentation.