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

Method sizes

xarray/core/dataset.py:499–511  ·  view source on GitHub ↗

Mapping from dimension names to lengths. Cannot be modified directly, but is updated when adding new variables. This is an alias for `Dataset.dims` provided for the benefit of consistency with `DataArray.sizes`. See Also -------- DataArray.sizes

(self)

Source from the content-addressed store, hash-verified

497
498 @property
499 def sizes(self) -> Frozen[Hashable, int]:
500 """Mapping from dimension names to lengths.
501
502 Cannot be modified directly, but is updated when adding new variables.
503
504 This is an alias for `Dataset.dims` provided for the benefit of
505 consistency with `DataArray.sizes`.
506
507 See Also
508 --------
509 DataArray.sizes
510 """
511 return Frozen(self._dims)
512
513 @property
514 def dtypes(self) -> Frozen[Hashable, np.dtype]:

Callers

nothing calls this directly

Calls 1

FrozenClass · 0.90

Tested by

no test coverage detected