method
ndarray.
squeeze
Remove axes of length one from a.
Refer to numpy.squeeze for full documentation.
numpy.squeeze
See also
equivalent function