Skip to content
TensorStore
tensorstore.Schema.label
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
        • Core
        • Indexing
        • Spec
          • CSpec
          • CSchema
            • Constructors
            • Mutators
            • Accessors
            • String representation
            • Indexing
              • M__getitem__(transform)
              • M__getitem__(domain)
              • M__getitem__(expr)
              • M__getitem__(indices)
              • Moindex
              • Mvindex
              • PT
              • Mtranslate_to
              • Mtranslate_by
              • Mtranslate_backward_by
              • Mlabel
                • Parameters
                  • plabels
                • Raises
              • Mmark_bounds_implicit
              • Mtranspose
            • Comparison operators
          • CCodecSpec
          • COpenMode
          • CChunkLayout
          • CUnit
          • VRecheckCacheOption
        • 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.Schema.label[self, labels: str | Sequence[str]] → Schema

    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.Schema.translate_backward_by
    Next tensorstore.Schema.mark_bounds_implicit