PrimitiveDataFrameColumn<T>.Apply<TResult> Method

Definition

Applies a function to all the values

public Microsoft.Data.Analysis.PrimitiveDataFrameColumn<TResult> Apply<TResult> (Func<T?,TResult?> func) where TResult : struct;
member this.Apply : Func<Nullable<'T>, Nullable<'Result>> -> Microsoft.Data.Analysis.PrimitiveDataFrameColumn<'Result (requires 'Result : struct)> (requires 'Result : struct)
Public Function Apply(Of TResult As Structure) (func As Func(Of Nullable(Of T), Nullable(Of TResult))) As PrimitiveDataFrameColumn(Of TResult)

Type Parameters

TResult

The new column's type

Parameters

func
Func<Nullable<T>,Nullable<TResult>>

The function to apply

Returns

A new PrimitiveDataFrameColumn containing the new values

Applies to