cf.Data.ndim¶
-
Data.
ndim
¶ Number of dimensions in the data array.
Examples
>>> d = cf.Data([[1, 2, 3], [4, 5, 6]]) >>> d.ndim 2
>>> d = cf.Data([[1, 2, 3]]) >>> d.ndim 2
>>> d = cf.Data([[3]]) >>> d.ndim 2
>>> d = cf.Data([3]) >>> d.ndim 1
>>> d = cf.Data(3) >>> d.ndim 0