cfdm.CFDMImplementation.squeeze

CFDMImplementation.squeeze(construct, axes=None, inplace=False)[source]

Remove size 1 axes from construct data.

Parameters:
construct:

The construct.

axes: optional

The axes to squeeze. If None then all size 1 axes are removed from the data.

inplace: bool, optional

If True then do the operation in-place and return None.

Added in version (cfdm): 1.12.0.0

Returns:

The construct with removed axes, or None if the operation was in-place.