Applies the specified transformation to each column in the data frame.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual DataFrame<R, C> TransformColumns<T, U>(
Func<Vector<T>, Vector<U>> transformation
)
Public Overridable Function TransformColumns(Of T, U) (
transformation As Func(Of Vector(Of T), Vector(Of U))
) As DataFrame(Of R, C)
public:
generic<typename T, typename U>
virtual DataFrame<R, C>^ TransformColumns(
Func<Vector<T>^, Vector<U>^>^ transformation
)
abstract TransformColumns :
transformation : Func<Vector<'T>, Vector<'U>> -> DataFrame<'R, 'C>
override TransformColumns :
transformation : Func<Vector<'T>, Vector<'U>> -> DataFrame<'R, 'C>
Parameters
- transformation
- Type: SystemFuncVectorT, VectorU
A transformation function.
Type Parameters
- T
- The element type of the source columns.
- U
- The element type of the result.
Return Value
Type:
DataFrameR,
CA new data frame that contains the transformed columns.
This method assumes that the index of the result of the transformation
has the same element type as the current row index.
Reference