index

method of dascore.core.coords.BaseCoord source

index(
    self ,
    indexer ,
    axis: int | None[int, None] = None,
)-> ‘Self’

Index the coordinate and return new coordinate.

Parameters

Parameter Description
indexer Anything that can be used in numpy indexing.
axis The axis along which to apply the indexer. If None,
just apply indexer to numpy array.