Applies the specified function to selected columns and replaces
the columns with the mapped 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,
IList<C> newColumnKeys
)
Public Function MapAndReplace(Of T) (
columnKeys As IList(Of C),
function As Func(Of Vector(Of T), IVector),
newColumnKeys As IList(Of C)
) As DataFrame(Of R, C)
public:
generic<typename T>
DataFrame<R, C>^ MapAndReplace(
IList<C>^ columnKeys,
Func<Vector<T>^, IVector^>^ function,
IList<C>^ newColumnKeys
)
member MapAndReplace :
columnKeys : IList<'C> *
function : Func<Vector<'T>, IVector> *
newColumnKeys : IList<'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. - newColumnKeys
- Type: System.Collections.GenericIListC
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 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