tensorstore.TensorStore.ndim : int

Alias for rank.

Example

>>> dataset = ts.array([[1, 2, 3], [4, 5, 6]], dtype=ts.int32)
>>> dataset.ndim
2