map(_:)
Creates a new column by applying the given thread-safe transform to every non-missing element of this column.
Declaration
func map<T>(_ lazyTransform: @escaping (Element) -> T) -> MLDataColumn<T> where T : MLDataValueConvertibleParameters
- lazyTransform:
A thread-safe element transformation function. The implementation of the transform you provide should accept an
Elementof the column and return a transformed value of a type that conforms to Mldatavalueconvertible.
Return Value
A new column typed to the return type of lazyTransform.