Initializer

init()

Creates an empty table containing no rows or columns.

Declaration

init()

Discussion

Use this initializer to create an empty data table. Then, you add data columns with addColumn(_:named:), untyped columns with addColumn(_:named:), or another table with append(contentsOf:).

See Also

Creating a Data Table

Creating a Model from Tabular Data

Train a machine learning model by using Core ML to import and manage tabular data.

init(contentsOf: URL, options: MLDataTable.ParsingOptions)

Creates a data table from an imported JSON or CSV file.

init(dictionary: [String : MLDataValueConvertible])

Creates a data table from a dictionary of column names and data values.

init(namedColumns: [String : MLUntypedColumn])

Creates a data table from a dictionary of column names and untyped columns.