---
title: "gatherAnnotatedFeatures(featureColumns:labelColumn:recordingFileColumn:)"
framework: Create ML
role: symbol
role_heading: Instance Method
platforms: [macOS 14.0+]
path: "createml/mlactivityclassifier/datasource/gatherannotatedfeatures(featurecolumns:labelcolumn:recordingfilecolumn:)"
---

# gatherAnnotatedFeatures(featureColumns:labelColumn:recordingFileColumn:)

Processes the data source and returns a data frame that contains features, labels and file names.

## Declaration

```swift
func gatherAnnotatedFeatures(featureColumns: [String], labelColumn: String = "label", recordingFileColumn: String? = nil) throws -> DataFrame
```

## Parameters

- `featureColumns`: The names of the feature columns.
- `labelColumn`: The name of the column with the labels.
- `recordingFileColumn`: The name of the column with the recording file names, if any.
