cf.Data.numblocks

Data.numblocks

The number of chunks along each dimension.

New in version 3.14.0.

Examples

>>> d = cf.Data.ones((6, 5), chunks=(2, 4))
>>> d.chunks
((2, 2, 2), (4, 1))
>>> d.numblocks
(3, 2)
>>> d.npartitions
6