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

# subscript(_:)

Creates a subset of the table given a range of rows.

## Declaration

```swift
subscript(slice: Range<Int>) -> MLDataTable { get }
```

## Parameters

- `slice`: A range of integers indicating which rows to include in the new data table.

## Return Value

Return Value A new data table.
