cf.Data.sample_size

Data.sample_size(axes=None, squeeze=False, mtol=1, inplace=False, i=False, _preserve_partitions=False)[source]

Collapses axes with their sample size.

Parameters
inplace: bool, optional

If True then do the operation in-place and return None.

i: deprecated at version 3.0.0

Use the inplace parameter instead.