Data Frame<R, C>.Map Method
Definition
Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Map( | Applies the specified function to selected columns and returns the result in a new data frame. |
Map( | Applies the specified function to selected columns and returns the result in a new data frame. |
Map<T>(Func<Vector<T>, IVector>) | Applies the specified function to all columns with the specified element type and returns the result in a new data frame. |
Map<T>(IList<C>, Func<Vector<T>, IVector>, IList<C>) | Applies the specified function to selected columns. |
Map<T>(IList<C>, Func<Vector<T>, IVector>, Func<C, C>) | Applies the specified function to selected columns. |
Map<T>(Func<Vector<T>, IVector>)
Applies the specified function to all columns with the specified element type
and returns the result in a new data frame.
public DataFrame<R, C> Map<T>(
Func<Vector<T>, IVector> function
)
Parameters
Type Parameters
- T
- The element type of the columns that function is applied to.
Return Value
DataFrame<R, C>A new data frame that has every column with element type T replaced with function applied to that column.
Map(IList<C>, Func<IVector, IVector>, IList<C>)
Applies the specified function to selected columns and returns the result
in a new data frame.
public DataFrame<R, C> Map(
IList<C> columnKeys,
Func<IVector, IVector> function,
IList<C> newColumnKeys
)
Parameters
- columnKeys IList<C>
- A list of keys of the columns to map.
- function Func<IVector, IVector>
- The function to apply.
- newColumnKeys IList<C>
- The list of keys of the mapped columns. If this value is null, the original column keys are used.
Return Value
DataFrame<R, C>A new data frame whose columns are function applied to the columns with key in columnKeys and column keys specified by newColumnKeys.
Exceptions
Key | One or more of the keys in columnKeys could not be found in the column index. |
Map(IList<C>, Func<IVector, IVector>, Func<C, C>)
Applies the specified function to selected columns and returns the result
in a new data frame.
public DataFrame<R, C> Map(
IList<C> columnKeys,
Func<IVector, IVector> function,
Func<C, C> keyGenerator
)
Parameters
- columnKeys IList<C>
- A list of keys of the columns to map.
- function Func<IVector, IVector>
- The function to apply.
- keyGenerator Func<C, C>
- A function that maps old column keys to new column keys.
Return Value
DataFrame<R, C>A 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.
Exceptions
Key | One or more of the keys in columnKeys could not be found in the column index. |
Map<T>(IList<C>, Func<Vector<T>, IVector>, IList<C>)
Applies the specified function to selected columns.
public DataFrame<R, C> Map<T>(
IList<C> columnKeys,
Func<Vector<T>, IVector> function,
IList<C> newColumnKeys
)
Parameters
- columnKeys IList<C>
- A list of keys of the columns to map.
- function Func<Vector<T>, IVector>
- The function to apply.
- newColumnKeys IList<C>
- The list of keys of the mapped columns. If this value is null, the original column keys are used.
Type Parameters
- T
Return Value
DataFrame<R, C>A new data frame whose columns are function applied to the columns with key in columnKeys and column keys specified by newColumnKeys.
Exceptions
Key | One or more of the keys in columnKeys could not be found in the column index. |
Map<T>(IList<C>, Func<Vector<T>, IVector>, Func<C, C>)
Applies the specified function to selected columns.
public DataFrame<R, C> Map<T>(
IList<C> columnKeys,
Func<Vector<T>, IVector> function,
Func<C, C> keyGenerator
)
Parameters
- columnKeys IList<C>
- A list of keys of the columns to map.
- function Func<Vector<T>, IVector>
- The function to apply.
- keyGenerator Func<C, C>
- A function that maps old column keys to new column keys.
Type Parameters
- T
Return Value
DataFrame<R, C>A 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.
Exceptions
Key | One or more of the keys in columnKeys could not be found in the column index. |