Applies the specified function to selected columns.
Namespace: Extreme.DataAnalysisAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public DataFrame<R, C> MapAndReplace(
C columnKey,
Func<IVector, IVector> function,
C newColumnKey
)
Public Function MapAndReplace (
columnKey As C,
function As Func(Of IVector, IVector),
newColumnKey As C
) As DataFrame(Of R, C)
public:
DataFrame<R, C>^ MapAndReplace(
C columnKey,
Func<IVector^, IVector^>^ function,
C newColumnKey
)
member MapAndReplace :
columnKey : 'C *
function : Func<IVector, IVector> *
newColumnKey : 'C -> DataFrame<'R, 'C>
Parameters
- columnKey
- Type: C
the key of the column to map. - function
- Type: SystemFuncIVector, 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.
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. |
Numerical Libraries
Supported in: 6.0
Reference