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

Method nbytes

xarray/core/indexing.py:2067–2072  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2065
2066 @property
2067 def nbytes(self) -> int:
2068 if is_allowed_extension_array(self.array):
2069 return self.array.nbytes
2070
2071 dtype = self._get_numpy_dtype()
2072 return dtype.itemsize * len(self.array)
2073
2074
2075class PandasMultiIndexingAdapter(PandasIndexingAdapter):

Callers

nothing calls this directly

Calls 2

_get_numpy_dtypeMethod · 0.95

Tested by

no test coverage detected