cf.Data.npartitions

Data.npartitions

The total number of chunks.

New in version 3.14.0.

See also

chunks, numblocks, rechunk

Examples

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