MCPcopy Index your code
hub / github.com/pydata/xarray / _finalize_indexing_result

Method _finalize_indexing_result

xarray/core/variable.py:837–839  ·  view source on GitHub ↗

Used by IndexVariable to return IndexVariable objects when possible.

(self, dims, data)

Source from the content-addressed store, hash-verified

835 return self._finalize_indexing_result(dims, data)
836
837 def _finalize_indexing_result(self, dims, data) -> Self:
838 """Used by IndexVariable to return IndexVariable objects when possible."""
839 return self._replace(dims=dims, data=data)
840
841 def _getitem_with_mask(self, key, fill_value=dtypes.NA):
842 """Index this Variable with -1 remapped to fill_value."""

Callers 2

__getitem__Method · 0.95
_getitem_with_maskMethod · 0.95

Calls 1

_replaceMethod · 0.95

Tested by

no test coverage detected