drop_coords

method of dascore.core.coordmanager.CoordManager source

drop_coords(
    self ,
    *coords: str | collections.abc.Iterable[str, collections.abc.Iterable[str]] ,
    array: ndarray | None = None,
)-> ‘tuple[Self, MaybeArray]’

Drop one or more coordinates.

If the coordinate is a dimension, also drop other coords that depend on that dimension.

Parameters

Parameter Description
*coords The name of the coordinate or dimension, or a sequence of them.
array An array to trim along with the coordinates. Axes belonging to
dropped coordinates are emptied (length zero) rather than
removed, so the array keeps its dimensionality. If None, the
returned array is also None.