A type that can be converted to and from a value in a data table.
- macOS 10.14+Beta
- Xcode 10.0+Beta
- Create ML
A data table may contain an instance of any type that can be represented as an
Dictionary structures already conform to the
MLData protocol, but you can adopt this protocol in your own code as well.
When you create a data table from a dictionary of columns, you can use any data value-convertible type. The
init(dictionary:) initializer in
MLData automatically converts the column values you provide into data values.