DataFrame<R, C>.PivotBy<R1, C1> Method

Returns a two-dimensional grouping on the specified columns.

Definition

Namespace: Extreme.DataAnalysis
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public Pivot<R1, C1> PivotBy<R1, C1>(
	C rowKey,
	C columnKey
)

Parameters

rowKey  C
The key to the grouping column for the rows in the pivot table.
columnKey  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

Pivot<R1, C1>
A two-dimensional grouping.

Remarks

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.

Exceptions

KeyNotFoundException

A column with key rowKey or columnKey was not found in the data frame.

See Also