squeeze

method of dascore.core.coordmanager.CoordManager source

squeeze(
    self ,
    dim: collections.abc.Sequence[collections.abc.Sequence[str], None] = None,
)-> ‘Self’

Squeeze length one dimensions.

Parameters

Parameter Description
dim The dimension name, or sequence of dimension names, to drop.
If None, drop all length 1 dims

Raises

CoordError if the selected dimension has a length gt 1.