cf.Data.isscalar¶
-
Data.
isscalar
¶ True if the data is a 0-d scalar array.
Deprecated at version 3.14.0. Use
d.ndim == 0`
instead.Examples
>>> d = cf.Data(9, 'm') >>> d.isscalar True >>> d = cf.Data([9], 'm') >>> d.isscalar False >>> d = cf.Data([9, 10], 'm') >>> d.isscalar False