<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLActionClassifier/DataSource/labeledVideoDataFrame(_:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML18MLActionClassifierV10DataSourceO012labeledVideoE5FrameyAE07TabularE00eI0V_S3SSgAJtcAEmF"
  },
  "title" : "MLActionClassifier.DataSource.labeledVideoDataFrame(_:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)"
}
-->

# MLActionClassifier.DataSource.labeledVideoDataFrame(_:videoColumn:labelColumn:startTimeColumn:endTimeColumn:)

A data source made up of video references in a data frame.

```
case labeledVideoDataFrame(DataFrame, videoColumn: String = __Defaults.videoColumnName, labelColumn: String = __Defaults.labelColumnName, startTimeColumn: String? = nil, endTimeColumn: String? = nil)
```

## Parameters

`dataFrame`

A `DataFrame` containing video paths and labels.

`videoColumn`

The name of the column containing the video paths. Defaults to “videoPath”.

`labelColumn`

The name of the column containing the labels. Defaults to “label”.

`startTimeColumn`

The name of the column containing the start time. If `nil` start time is 0.

`endTimeColumn`

The name of the column containing the end time. If `nil` end time is the end of the video.

## Discussion

The data frame must contain a column of video file paths and a column of labels. It can also contain
columns with start and end times.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)