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>(
IList<C> columnKeys,
Func<Vector<T>, IVector> function,
Func<C, C> keyGenerator
)
Public Function MapAndReplace(Of T) (
columnKeys As IList(Of C),
function As Func(Of Vector(Of T), IVector),
keyGenerator As Func(Of C, C)
) As DataFrame(Of R, C)
public:
generic<typename T>
DataFrame<R, C>^ MapAndReplace(
IList<C>^ columnKeys,
Func<Vector<T>^, IVector^>^ function,
Func<C, C>^ keyGenerator
)
member MapAndReplace :
columnKeys : IList<'C> *
function : Func<Vector<'T>, 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: SystemFuncVectorT, IVector
The function to apply. - keyGenerator
- Type: SystemFuncC, C
A function that maps old column keys
to new column keys.
Type Parameters
- T
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