<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLDataTable/ParsingOptions/containsHeader",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML11MLDataTableV14ParsingOptionsV14containsHeaderSbvp"
  },
  "title" : "containsHeader"
}
-->

# containsHeader

A Boolean value indicating whether an input CSV file contains a
header.

```
var containsHeader: Bool
```

## Discussion

Set `containsHeader` to `false` when the first row in a CSV contains
usable data. Because every column in a data table needs a name,
`MLDataTable` names the columns `X1`, `X2`, … `X`*n* in the same
order as they appear in the CSV file.

---

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)