MCPcopy
hub / github.com/pydata/xarray / to_dataarray

Method to_dataarray

xarray/core/groupby.py:242–247  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

240 raise NotImplementedError
241
242 def to_dataarray(self) -> DataArray:
243 from xarray.core.dataarray import DataArray
244
245 return DataArray(
246 data=self.data, dims=(self.name,), coords=self.coords, name=self.name
247 )
248
249 def to_array(self) -> DataArray:
250 """Deprecated version of to_dataarray."""

Callers 2

to_arrayMethod · 0.95
_binary_opMethod · 0.45

Calls 1

DataArrayClass · 0.90

Tested by

no test coverage detected