Returns a two-dimensional grouping on the specified columns.
Namespace: Extreme.DataAnalysisAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public Pivot<R1, C1> PivotBy<R1, C1>(
C rowKey,
C columnKey
)
Public Function PivotBy(Of R1, C1) (
rowKey As C,
columnKey As C
) As Pivot(Of R1, C1)
public:
generic<typename R1, typename C1>
Pivot<R1, C1>^ PivotBy(
C rowKey,
C columnKey
)
member PivotBy :
rowKey : 'C *
columnKey : 'C -> Pivot<'R1, 'C1>
Parameters
- rowKey
- Type: C
The key to the grouping column for the rows in the pivot table. - columnKey
- Type: C
The key to the grouping column for the columns in the pivot table.
Type Parameters
- R1
- The element type of the row grouping column.
- C1
- The element type of the column grouping column.
Return Value
Type:
PivotR1,
C1A two-dimensional grouping.
Exception | Condition |
---|
KeyNotFoundException | A column with key rowKey or columnKey
was not found in the data frame. |
This method does not return a data frame.
Instead, it creates a Grouping
object that can be used to aggregate any vector
into a data frame with row and column values taken from the specified key columns.
Numerical Libraries
Supported in: 6.0
Reference