MCPcopy Create free account
hub / github.com/dask/dask / xarray_sizeof_pd_index

Function xarray_sizeof_pd_index

dask/sizeof.py:302–308  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

300
301 @sizeof.register(xr.core.indexes.PandasIndex)
302 def xarray_sizeof_pd_index(obj):
303 return (
304 sys.getsizeof(obj)
305 + sizeof(obj.index)
306 + sizeof(obj.dim)
307 + sizeof(obj.coord_dtype)
308 )
309
310
311def _register_entry_point_plugins():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected