Applies the specified function to selected columns and appends the results
to the end of the data frame.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<R, C> MapAndAppend(
IList<C> columnKeys,
Func<IVector, IVector> function,
IList<C> newColumnKeys
)
Public Function MapAndAppend (
columnKeys As IList(Of C),
function As Func(Of IVector, IVector),
newColumnKeys As IList(Of C)
) As DataFrame(Of R, C)
public:
DataFrame<R, C>^ MapAndAppend(
IList<C>^ columnKeys,
Func<IVector^, IVector^>^ function,
IList<C>^ newColumnKeys
)
member MapAndAppend :
columnKeys : IList<'C> *
function : Func<IVector, IVector> *
newColumnKeys : IList<'C> -> DataFrame<'R, 'C>
Parameters
- columnKeys
- Type: System.Collections.GenericIListC
A list of keys of the columns to map. - function
- Type: SystemFuncIVector, IVector
The function to apply. - newColumnKeys
- Type: System.Collections.GenericIListC
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 columns with key in
columnKeys and column keys specified by
newColumnKeys.
Exception | Condition |
---|
KeyNotFoundException | One or more of the keys in columnKeys
could not be found in the column index. |
Reference