Remove size 1 dimensions from the field’s data array in place.
Parameters : | axes : (sequence of) str or int, optional
|
---|---|
Returns : | None |
Examples
>>> f.squeeze()
>>> f.squeeze('time')
>>> f.squeeze(1)
>>> f.squeeze('dim2')
>>> f.squeeze([1, 'time', 'dim2'])
>>> f.squeeze('height', domain=True)
>>> f.squeeze([])