<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/ColumnSelection",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents15ColumnSelectionO"
  },
  "title" : "ColumnSelection"
}
-->

# ColumnSelection

A selection of columns from a data frame.

```
enum ColumnSelection
```

## Topics

### Column selection types

[`case all`](/documentation/CreateMLComponents/ColumnSelection/all)

Select all columns in the data frame.

[`case exclude(columnNames: [String])`](/documentation/CreateMLComponents/ColumnSelection/exclude(columnNames:))

Selects all columns except the specified columns.

[`case include(columnNames: [String])`](/documentation/CreateMLComponents/ColumnSelection/include(columnNames:))

Selects only the specified columns.

[`case numeric`](/documentation/CreateMLComponents/ColumnSelection/numeric)

Select all numeric columns in the data frame.

## Relationships

### Conforms To

[`Decodable`](/documentation/Swift/Decodable)

[`Encodable`](/documentation/Swift/Encodable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)