Applies the specified function to selected columns.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<R, C> MapAndReplace<T>(
C columnKey,
Func<Vector<T>, IVector> function,
C newColumnKey
)
Public Function MapAndReplace(Of T) (
columnKey As C,
function As Func(Of Vector(Of T), IVector),
newColumnKey As C
) As DataFrame(Of R, C)
public:
generic<typename T>
DataFrame<R, C>^ MapAndReplace(
C columnKey,
Func<Vector<T>^, IVector^>^ function,
C newColumnKey
)
member MapAndReplace :
columnKey : 'C *
function : Func<Vector<'T>, IVector> *
newColumnKey : 'C -> DataFrame<'R, 'C>
Parameters
- columnKey
- Type: C
the key of the column to map. - function
- Type: SystemFuncVectorT, IVector
The function to apply. - newColumnKey
- Type: C
The list of keys of the mapped columns.
If this value is , the original column keys are used.
Type Parameters
- T
Return Value
Type:
DataFrameR,
CA new data frame whose columns are
function applied to the column with key in
columnKey and column keys specified by
newColumnKey.
Exception | Condition |
---|
KeyNotFoundException | One or more of the keys in columnKey
could not be found in the column index. |
Reference