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

Method _update_coords

xarray/core/coordinates.py:1119–1127  ·  view source on GitHub ↗
(
        self, coords: dict[Hashable, Variable], indexes: dict[Hashable, Index]
    )

Source from the content-addressed store, hash-verified

1117 return self._data._getitem_coord(key)
1118
1119 def _update_coords(
1120 self, coords: dict[Hashable, Variable], indexes: dict[Hashable, Index]
1121 ) -> None:
1122 validate_dataarray_coords(
1123 self._data.shape, Coordinates._construct_direct(coords, indexes), self.dims
1124 )
1125
1126 self._data._coords = coords
1127 self._data._indexes = indexes
1128
1129 def _drop_coords(self, coord_names):
1130 # should drop indexed coordinates only

Callers

nothing calls this directly

Calls 2

_construct_directMethod · 0.45

Tested by

no test coverage detected