PrimitiveDataFrameColumn<T>.Apply Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Apply(Func<T,T>, Boolean) |
Applies a function to all values in the column, that are not null. |
Apply<TResult>(Func<Nullable<T>,Nullable<TResult>>) |
Obsolete.
Applies a function to all column values. |
Apply(Func<T,T>, Boolean)
- Source:
- PrimitiveDataFrameColumn.cs
- Source:
- PrimitiveDataFrameColumn.cs
- Source:
- PrimitiveDataFrameColumn.cs
Applies a function to all values in the column, that are not null.
public Microsoft.Data.Analysis.PrimitiveDataFrameColumn<T> Apply(Func<T,T> func, bool inPlace = false);
member this.Apply : Func<'T, 'T (requires 'T : struct and 'T : struct)> * bool -> Microsoft.Data.Analysis.PrimitiveDataFrameColumn<'T (requires 'T : struct)>
Public Function Apply (func As Func(Of T, T), Optional inPlace As Boolean = false) As PrimitiveDataFrameColumn(Of T)
Parameters
- func
- Func<T,T>
The function to apply.
- inPlace
- Boolean
A boolean flag to indicate if the operation should be in place.
Returns
A new PrimitiveDataFrameColumn<T> if inPlace
is not set. Returns this column otherwise.
Applies to
Apply<TResult>(Func<Nullable<T>,Nullable<TResult>>)
- Source:
- PrimitiveDataFrameColumn.cs
- Source:
- PrimitiveDataFrameColumn.cs
- Source:
- PrimitiveDataFrameColumn.cs
Caution
Method is obsolete, use Apply(Func<T, T> func, bool inPlace = false) instead
Applies a function to all column values.
[System.Obsolete("Method is obsolete, use Apply(Func<T, T> func, bool inPlace = false) instead")]
public Microsoft.Data.Analysis.PrimitiveDataFrameColumn<TResult> Apply<TResult>(Func<T?,TResult?> func) where TResult : struct;
public Microsoft.Data.Analysis.PrimitiveDataFrameColumn<TResult> Apply<TResult>(Func<T?,TResult?> func) where TResult : struct;
[<System.Obsolete("Method is obsolete, use Apply(Func<T, T> func, bool inPlace = false) instead")>]
member this.Apply : Func<Nullable<'T>, Nullable<'Result>> -> Microsoft.Data.Analysis.PrimitiveDataFrameColumn<'Result (requires 'Result : struct)> (requires 'Result : 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
Returns
A new PrimitiveDataFrameColumn containing the new values
- Attributes