Returns a new data frame using the specified columns as a hierarchical index.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<(R1 , R2 ), C> WithRowIndex<R1, R2>(
C column1Key,
C column2Key
)
Public Function WithRowIndex(Of R1, R2) (
column1Key As C,
column2Key As C
) As DataFrame(Of ( As R1, As R2), C)
public:
generic<typename R1, typename R2>
DataFrame<ValueTuple<R1, R2>, C>^ WithRowIndex(
C column1Key,
C column2Key
)
member WithRowIndex :
column1Key : 'C *
column2Key : 'C -> DataFrame<ValueTuple<'R1, 'R2>, 'C>
Parameters
- column1Key
- Type: C
The key of the first column. - column2Key
- Type: C
The key of the second column.
Type Parameters
- R1
- The element type of the first column.
- R2
- The element type of the second column.
Return Value
Type:
DataFrameValueTupleR1,
R2,
CA new data frame that contains all the columns in the current data frame
indexed by
column1Key and
column2Key.
Exception | Condition |
---|
KeyNotFoundException | A column with key column1Key could not be found. -or- A column with key column2Key could not be found. |
InvalidCastException | The column with key column1Key could not be cast
to a vector with element type R1 -or- The column with key column2Key could not be cast
to a vector with element type R2 |
Reference