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

Method _to_index

xarray/core/variable.py:577–578  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

575 to_coord = utils.alias(to_index_variable, "to_coord")
576
577 def _to_index(self) -> pd.Index:
578 return self.to_index_variable()._to_index()
579
580 def to_index(self) -> pd.Index:
581 """Convert this variable to a pandas.Index"""

Callers 2

_data_equalsMethod · 0.45
safe_cast_to_indexFunction · 0.45

Calls 1

to_index_variableMethod · 0.95

Tested by

no test coverage detected