numpy.ndarray.squeeze — NumPy v2.2 Manual (original) (raw)

method

ndarray.squeeze(axis=None)#

Remove axes of length one from a.

Refer to numpy.squeeze for full documentation.