Applies the specified function to selected columns and returns the result
in a new data frame.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<R, C> Map(
IList<C> columnKeys,
Func<IVector, IVector> function,
Func<C, C> keyGenerator
)
Public Function Map (
columnKeys As IList(Of C),
function As Func(Of IVector, IVector),
keyGenerator As Func(Of C, C)
) As DataFrame(Of R, C)
public:
DataFrame<R, C>^ Map(
IList<C>^ columnKeys,
Func<IVector^, IVector^>^ function,
Func<C, C>^ keyGenerator
)
member Map :
columnKeys : IList<'C> *
function : Func<IVector, IVector> *
keyGenerator : Func<'C, '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. - keyGenerator
- Type: SystemFuncC, C
A function that maps old column keys
to new column keys.
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
keyGenerator applied to each key in
columnKeys.
Exception | Condition |
---|
KeyNotFoundException | One or more of the keys in columnKeys
could not be found in the column index. |
Reference