map(to:)
Creates a new column by converting this column to the given type.
Declaration
func map<T>(to type: T.Type) -> MLDataColumn<T> where T : MLDataValueConvertibleParameters
- type:
A type of Mldatacolumn to convert the contents of the column to, using Mldatavalueconvertible.
Return Value
A new column.
Discussion
This method is functionally equivalent to the initializers of MLDataColumn that have one parameter column, such as init(column:).