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

Method __repr__

dask/array/core.py:1604–1621  ·  view source on GitHub ↗

>>> import dask.array as da >>> da.ones((10, 10), chunks=(5, 5), dtype='i4') dask.array<..., shape=(10, 10), dtype=int32, chunksize=(5, 5), chunktype=numpy.ndarray>

(self)

Source from the content-addressed store, hash-verified

1602 return NotImplemented
1603
1604 def __repr__(self):
1605 """
1606
1607 >>> import dask.array as da
1608 >>> da.ones((10, 10), chunks=(5, 5), dtype='i4')
1609 dask.array<..., shape=(10, 10), dtype=int32, chunksize=(5, 5), chunktype=numpy.ndarray>
1610 """
1611 name = self.name.rsplit("-", 1)[0]
1612 return (
1613 "dask.array<{}, shape={}, dtype={}, chunksize={}, chunktype={}.{}>".format(
1614 name,
1615 self.shape,
1616 self.dtype,
1617 self.chunksize,
1618 type(self._meta).__module__.split(".")[0],
1619 type(self._meta).__name__,
1620 )
1621 )
1622
1623 def _repr_html_(self):
1624 if ARRAY_TEMPLATE is None:

Callers

nothing calls this directly

Calls 2

rsplitMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected