Transforms a data frame so that the column index is nested into the row index.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static DataFrame<(R1 , R2 , C ), long> Stack<R1, R2, C>(
this DataFrame<(R1 , R2 ), C> frame,
bool excludeMissing = true
)
<ExtensionAttribute>
Public Shared Function Stack(Of R1, R2, C) (
frame As DataFrame(Of ( As R1, As R2), C),
Optional excludeMissing As Boolean = true
) As DataFrame(Of ( As R1, As R2, As C), Long)
public:
[ExtensionAttribute]
generic<typename R1, typename R2, typename C>
static DataFrame<ValueTuple<R1, R2, C>, long long>^ Stack(
DataFrame<ValueTuple<R1, R2>, C>^ frame,
bool excludeMissing = true
)
[<ExtensionAttribute>]
static member Stack :
frame : DataFrame<ValueTuple<'R1, 'R2>, 'C> *
?excludeMissing : bool
(* Defaults:
let _excludeMissing = defaultArg excludeMissing true
*)
-> DataFrame<ValueTuple<'R1, 'R2, 'C>, int64>
Parameters
- frame
- Type: Extreme.DataAnalysisDataFrameValueTupleR1, R2, C
A data frame. - excludeMissing (Optional)
- Type: SystemBoolean
Indicates whether a row should be omitted
if the value is missing. The default is .
Type Parameters
- R1
- The element type of the first level of the row index of the data frame.
- R2
- The element type of the second level of the row index of the data frame.
- C
- The element type of the column index of the data frame.
Return Value
Type:
DataFrameValueTupleR1,
R2,
C,
Int64A new data frame whose row index is a hierarchical index where
the first level corresponds to the row index of
frame,
and the second level corresponds to the column 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,
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