DataFrame<R, C>.Unstack<T> Method

Converts a data frame from long to wide format.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public DataFrame<long, C> Unstack<T>(
	IEnumerable<C> idColumns,
	C variableKey,
	C valueKey
)

Parameters

idColumns  IEnumerable<C>
A sequence of keys for the identifier columns.
variableKey  C
The key of the column that contains the variable keys.
valueKey  C
The key of the column that contains the values.

Type Parameters

T

Return Value

DataFrame<Int64, C>
A data frame

See Also