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

Method to_index_variable

xarray/core/variable.py:2945–2947  ·  view source on GitHub ↗

Return this variable as an xarray.IndexVariable

(self)

Source from the content-addressed store, hash-verified

2943 return self._to_index().equals(other._to_index())
2944
2945 def to_index_variable(self) -> IndexVariable:
2946 """Return this variable as an xarray.IndexVariable"""
2947 return self.copy(deep=False)
2948
2949 to_coord = utils.alias(to_index_variable, "to_coord")
2950

Callers 1

Calls 1

copyMethod · 0.95

Tested by 1