<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLDataColumn/subscript(_:)-1n3x",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Subscript",
  "symbol" : {
    "kind" : "Instance Subscript",
    "modules" : [
      "Create ML",
      "CreateML"
    ],
    "preciseIdentifier" : "s:8CreateML12MLDataColumnVyACyxGAA09MLUntypedD0Vcip"
  },
  "title" : "subscript(_:)"
}
-->

# subscript(_:)

Returns a `MLDataColumn` containing only the elements for which the corresponding mask has a nonzero or
non-default value.

```
subscript(mask: MLUntypedColumn) -> MLDataColumn<Element> { get }
```

## Parameters

`mask`

a MLUntypedColumn with the same element count as this MLUntypedColumn.

## Return Value

A MLUntypedColumn containing the subsequence of this MLUntypedColumn’s elements indicated by the
mask MLUntypedColumn.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)