init(csvData:columns:rows:options:)
Creates a data frame from CSV data.
Declaration
init<each T>(csvData data: Data, columns: repeat ColumnID<each T>, rows: Range<Int>? = nil, options: CSVReadingOptions = .init()) throwsParameters
- data:
The contents of a CSV file.
- columns:
The column identifiers.
- rows:
A range of indices; Set to
nilto use every row in the CSV file. - options:
The options that tell the data frame how to read the CSV data.