cf.Data.shape

Data.shape

Tuple of the data array’s dimension sizes.

Examples:

>>> d = cf.Data([[1, 2, 3], [4, 5, 6]])
>>> d.shape
(2, 3)
>>> d = cf.Data([[1, 2, 3]])
>>> d.shape
(1, 3)
>>> d = cf.Data([[3]])
>>> d.shape
(1, 1)    
>>> d = cf.Data(3)
>>> d.shape
()