Data Frame<R, C>.Grouped By<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.4
C#
A new data frame indexed by combining the specified column with the existing index.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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
Key | A column with key columnKey could not be found. |
Invalid | The column with key columnKey could not be cast to a vector with element type R1. |