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

Method to_index

xarray/core/dataarray.py:843–847  ·  view source on GitHub ↗

Convert this variable to a pandas.Index. Only possible for 1D arrays.

(self)

Source from the content-addressed store, hash-verified

841 return self.variable._to_index()
842
843 def to_index(self) -> pd.Index:
844 """Convert this variable to a pandas.Index. Only possible for 1D
845 arrays.
846 """
847 return self.variable.to_index()
848
849 @property
850 def dims(self) -> tuple[Hashable, ...]:

Callers 1

to_seriesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected