---
title: "subscript(_:)"
framework: tabulardata
role: symbol
role_heading: Instance Subscript
path: "tabulardata/dataframeprotocol/subscript(_:)"
---

# subscript(_:)

Accesses a slice of the data frame type with an index range.

## Declaration

```swift
subscript(range: Range<Int>) -> DataFrame.Slice { get set }
```

## Parameters

- `range`: An integer range.

## See Also

### Accessing Rows

- [subscript(_:)](tabulardata/dataframeprotocol/subscript(_:)-8hly3.md)
