Skip to content
TensorStore
tensorstore.IndexDomain.label
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
        • Core
        • Indexing
          • Vinf
          • CIndexDomain
            • Constructors
            • Accessors
            • Sequence accessors
            • Indexing
              • M__getitem__(selection)
              • M__getitem__(domain)
              • M__getitem__(expr)
              • M__getitem__(transform)
              • PT
              • Mtranslate_to
              • Mtranslate_by
              • Mtranslate_backward_by
              • Mlabel
                • Parameters
                  • plabels
                • Raises
              • Mmark_bounds_implicit
              • Mtranspose
            • Geometric operations
            • String representation
          • CIndexTransform
          • CDim
          • COutputIndexMap
          • COutputIndexMaps
          • COutputIndexMethod
          • CDimExpression
          • Cd
          • Vnewaxis
          • CIndexable
        • Spec
        • Views
        • Data types
        • Asynchronous support
        • OCDBT
        • Experimental
      • API reference
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    • Parameters
      • plabels
    • Raises
    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:¶
    labels: str | Sequence[str]¶

    Dimension labels for each dimension.

    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

    • tensorstore.DimExpression.label

    Back to top
    Previous tensorstore.IndexDomain.translate_backward_by
    Next tensorstore.IndexDomain.mark_bounds_implicit