xdas.coordinates.DenseCoordinate.get_indexer#

DenseCoordinate.get_indexer(value, method=None)[source]#

Return the integer index (or indices) for value.

Parameters:
  • value (scalar or array-like) – Label(s) to look up.

  • method (str, optional) – Forwarded to pandas.Index.get_indexer() (e.g. "ffill").

Return type:

int or numpy.ndarray

Raises:

KeyError – If any requested label is not found (indexer returns -1).