DataFrame<R, C>.TransformColumns Method

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

TransformColumns(Func<IVector, IVector>) Applies the specified transformation to each column in the data frame.
TransformColumns<T, U>(Func<T, U>) Applies the specified transformation to each element of each column in the data frame.
TransformColumns<T, U>(Func<Vector<T>, Vector<U>>) Applies the specified transformation to each column in the data frame.
TransformColumns<T, U, R1>(Func<Vector<T>, Vector<U>>) Applies the specified transformation to each column in the data frame.

TransformColumns(Func<IVector, IVector>)

Applies the specified transformation to each column in the data frame.
C#
public virtual DataFrame<R, C> TransformColumns(
	Func<IVector, IVector> transformation
)

Parameters

transformation  Func<IVector, IVector>
A transformation function.

Return Value

DataFrame<R, C>
A new data frame that contains the transformed columns.

Remarks

This method assumes that the index of the result of the transformation has the same element type as the current row index.

Exceptions

ArgumentNullException

transformation is null.

TransformColumns<T, U>(Func<T, U>)

Applies the specified transformation to each element of each column in the data frame.
C#
public virtual DataFrame<R, C> TransformColumns<T, U>(
	Func<T, U> transformation
)

Parameters

transformation  Func<T, U>
A transformation function.

Type Parameters

T
The element type of the source columns.
U
The element type of the result.

Return Value

DataFrame<R, C>
A new data frame that contains the transformed columns.

TransformColumns<T, U>(Func<Vector<T>, Vector<U>>)

Applies the specified transformation to each column in the data frame.
C#
public virtual DataFrame<R, C> TransformColumns<T, U>(
	Func<Vector<T>, Vector<U>> transformation
)

Parameters

transformation  Func<Vector<T>, Vector<U>>
A transformation function.

Type Parameters

T
The element type of the source columns.
U
The element type of the result.

Return Value

DataFrame<R, C>
A new data frame that contains the transformed columns.

Remarks

This method assumes that the index of the result of the transformation has the same element type as the current row index.

TransformColumns<T, U, R1>(Func<Vector<T>, Vector<U>>)

Applies the specified transformation to each column in the data frame.
C#
public virtual DataFrame<R1, C> TransformColumns<T, U, R1>(
	Func<Vector<T>, Vector<U>> transformation
)

Parameters

transformation  Func<Vector<T>, Vector<U>>
A transformation function.

Type Parameters

T
The element type of the source columns.
U
The element type of the result.
R1
The element type of the row index of the result.

Return Value

DataFrame<R1, C>
A new data frame that contains the transformed columns.

See Also