语言

PrimitiveDataFrameColumn<T>.Apply 方法

定义

重载

名称 说明
Apply(Func<T,T>, Boolean)

将函数应用于列中的所有值,这些值不为 null。

Apply<TResult>(Func<Nullable<T>,Nullable<TResult>>)
已过时.

将函数应用于所有列值。

Apply(Func<T,T>, Boolean)

Source:
PrimitiveDataFrameColumn.cs
Source:
PrimitiveDataFrameColumn.cs
Source:
PrimitiveDataFrameColumn.cs

将函数应用于列中的所有值,这些值不为 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)

参数

func
Func<T,T>

要应用的函数。

inPlace
Boolean

一个布尔标志,用于指示操作是否应到位。

返回

如果未设置,则为新PrimitiveDataFrameColumn<T>inPlace项。 否则返回此列。

适用于

Apply<TResult>(Func<Nullable<T>,Nullable<TResult>>)

Source:
PrimitiveDataFrameColumn.cs
Source:
PrimitiveDataFrameColumn.cs
Source:
PrimitiveDataFrameColumn.cs

注意

Method is obsolete, use Apply(Func<T, T> func, bool inPlace = false) instead

将函数应用于所有列值。

[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)

类型参数

TResult

新列的类型

参数

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

要应用的函数

返回

包含新值的新 PrimitiveDataFrameColumn

属性

适用于