cf.Data.__len__

Data.__len__()[source]

The built-in function len

x.__len__() <==> len(x)

Examples:

>>> len(Data([1, 2, 3]))
3
>>> len(Data([[1, 2, 3]]))
1
>>> len(Data([[1, 2, 3], [4, 5, 6]])
2
>>> len(Data(1))
TypeError: len() of scalar Data