Contents

MLDataTable.ParsingOptions

The options for parsing a comma-separated values (CSV) file into a data table for a machine learning model.

Declaration

struct ParsingOptions

Overview

Use ParsingOptions only when importing a CSV file with init(contentsOf:options:), especially if your CSV file has special formatting or your data table only needs to import specific rows or columns.

Topics

Creating the CSV parsing options

Specifying the CSV file format

Handling special characters

Ignoring CSV components

Limiting rows and columns

Representing missing values

See Also

Creating a data table