Contents

containsHeader

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

Declaration

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

See Also

Specifying the CSV file format