Transforms a data frame with a three-level row index into a data frame whose columns
correspond to the third level in the index.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DataFrame<(R1 , R2 ), (C , R3 )> Unstack<R1, R2, R3, C>(
this DataFrame<(R1 , R2 , R3 ), C> frame
)
<ExtensionAttribute>
Public Shared Function Unstack(Of R1, R2, R3, C) (
frame As DataFrame(Of ( As R1, As R2, As R3), C)
) As DataFrame(Of ( As R1, As R2), ( As C, As R3))
public:
[ExtensionAttribute]
generic<typename R1, typename R2, typename R3, typename C>
static DataFrame<ValueTuple<R1, R2>, ValueTuple<C, R3>>^ Unstack(
DataFrame<ValueTuple<R1, R2, R3>, C>^ frame
)
[<ExtensionAttribute>]
static member Unstack :
frame : DataFrame<ValueTuple<'R1, 'R2, 'R3>, 'C> -> DataFrame<ValueTuple<'R1, 'R2>, ValueTuple<'C, 'R3>>
Parameters
- frame
- Type: Extreme.DataAnalysisDataFrameValueTupleR1, R2, R3, C
The data frame to transform.
Type Parameters
- R1
- The element type of the first level of the row index.
- R2
- The element type of the second level of the row index.
- R3
- The element type of the third level of the row index.
- C
- The element type of the column index.
Return Value
Type:
DataFrameValueTupleR1,
R2,
ValueTupleC,
R3A new data frame whose row index corresponds to the first two levels of
the row index of
frame, and whose column index is
a hierarchical index where the first level corresponds to the columns in
frame
and the second level corresponds to the third level in the row index of
frame.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
DataFrameValueTupleR1,
R2,
R3,
C. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Reference