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

Method to_dataset

xarray/core/coordinates.py:466–469  ·  view source on GitHub ↗

Convert these coordinates into a new Dataset.

(self)

Source from the content-addressed store, hash-verified

464 return self._data.variables
465
466 def to_dataset(self) -> Dataset:
467 """Convert these coordinates into a new Dataset."""
468 names = [name for name in self._data._variables if name in self._names]
469 return self._data._copy_listed(names)
470
471 def __getitem__(self, key: Hashable) -> DataArray:
472 return self._data[key]

Callers 15

equalsMethod · 0.95
identicalMethod · 0.95
mergeMethod · 0.95
_overwrite_indexesMethod · 0.95
_reindex_callbackMethod · 0.95
drop_varsMethod · 0.95
drop_dimsMethod · 0.95
rename_dimsMethod · 0.95
rename_varsMethod · 0.95
test_init_noindexMethod · 0.95

Calls 1

_copy_listedMethod · 0.80

Tested by 6

test_init_noindexMethod · 0.76
test_init_from_coordsMethod · 0.76
test_copyMethod · 0.76
test_alignMethod · 0.76