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

Method to_array

xarray/core/dataset.py:7184–7188  ·  view source on GitHub ↗

Deprecated version of to_dataarray

(
        self, dim: Hashable = "variable", name: Hashable | None = None
    )

Source from the content-addressed store, hash-verified

7182 return DataArray._construct_direct(variable, coords, name, indexes)
7183
7184 def to_array(
7185 self, dim: Hashable = "variable", name: Hashable | None = None
7186 ) -> DataArray:
7187 """Deprecated version of to_dataarray"""
7188 return self.to_dataarray(dim=dim, name=name)
7189
7190 def _normalize_dim_order(
7191 self, dim_order: Sequence[Hashable] | None = None

Callers

nothing calls this directly

Calls 1

to_dataarrayMethod · 0.95

Tested by

no test coverage detected