---
title: containsHeader
framework: createml
role: symbol
role_heading: Instance Property
path: createml/mldatatable/parsingoptions/containsheader
---

# containsHeader

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

## Declaration

```swift
var containsHeader: Bool
```

## Discussion

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, … Xn in the same order as they appear in the CSV file.

## See Also

### Specifying the CSV file format

- [delimiter](createml/mldatatable/parsingoptions/delimiter.md)
- [lineTerminator](createml/mldatatable/parsingoptions/lineterminator.md)
