---
title: "subscript(_:)"
framework: createml
role: symbol
role_heading: Instance Subscript
path: "createml/mldatatable/subscript(_:)-2wkan"
---

# subscript(_:)

Creates a subset of the table given a sequence of column names.

## Declaration

```swift
subscript<S>(columnNames: S) -> MLDataTable where S : Sequence, S.Element == String { get }
```

## Parameters

- `columnNames`: A sequence of names indicating which columns to includein the new data table.

## Return Value

Return Value A new data table.
