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

# subscript(_:_:)

Returns a column you select by its name and type.

## Declaration

```swift
subscript<T>(columnName: String, type: T.Type) -> DiscontiguousColumnSlice<T> { get }
```

## Parameters

- `columnName`: The name of a column.
- `type`: The type of the column.

## See Also

### Creating a Slice by Selecting a Column

- [subscript(_:)](tabulardata/dataframe/slice/subscript(_:)-32h9z.md)
- [subscript(column:_:)](tabulardata/dataframe/slice/subscript(column:_:).md)
- [subscript(_:)](tabulardata/dataframe/slice/subscript(_:)-18kdy.md)
- [subscript(dynamicMember:)](tabulardata/dataframe/slice/subscript(dynamicmember:).md)
