PrimitiveDataFrameColumn<T>.Apply 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Apply(Func<T,T>, Boolean) |
對欄位中所有非空值套用函數。 |
| Apply<TResult>(Func<Nullable<T>,Nullable<TResult>>) |
已淘汰.
會對所有欄位值套用一個函數。 |
Apply(Func<T,T>, Boolean)
對欄位中所有非空值套用函數。
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>新的 if inPlace 未被設定。 否則會回傳此欄。
適用於
Apply<TResult>(Func<Nullable<T>,Nullable<TResult>>)
警告
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
新柱的類型
參數
傳回
PrimitiveDataFrameColumn<TResult>
一個新的 PrimitiveDataFrameColumn,包含新值
- 屬性