init(contentsOfCSVFile:columns:rows:options:)
Creates a data frame from a CSV file.
Declaration
init<each T>(contentsOfCSVFile url: URL, columns: repeat ColumnID<each T>, rows: Range<Int>? = nil, options: CSVReadingOptions = .init()) throwsParameters
- url:
A URL for 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 file.