DataFrame<R, C>.GroupedBy<R1> Method

Returns a new data frame by grouping the index by the specified column.

Definition

Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public DataFrame<(R1 , R ), C> GroupedBy<R1>(
	C columnKey
)

Parameters

columnKey  C
The key of the grouping column.

Type Parameters

R1
The element type of the grouping column.

Return Value

DataFrame<ValueTuple<R1, R>, C>
A new data frame indexed by combining the specified column with the existing index.

Exceptions

KeyNotFoundException

A column with key columnKey could not be found.

InvalidCastException

The column with key columnKey could not be cast to a vector with element type R1.

See Also