- tensorstore.IndexDomain.label[self, labels: str | Sequence[str]] IndexDomain
Returns a new view with the dimension labels changed.
This is equivalent to
self[ts.d[:].label[labels]]
.- Parameters:¶
- Raises:¶
IndexError – If the number of labels does not match the number of dimensions, or if the resultant domain would have duplicate labels.
See also