---
title: "selecting(_:)"
framework: tabulardata
role: symbol
role_heading: Instance Method
path: "tabulardata/dataframe/selecting(_:)"
---

# selecting(_:)

Generates a data frame that includes only the column selection.

## Declaration

```swift
func selecting(_ selection: ColumnSelection) -> DataFrame
```

## Parameters

- `selection`: A selection of columns.

## Return Value

Return Value A new data frame including only the selected columns.
