FrameViewGroupByT Method (String, FuncFrameView, T, String) |
Groups the data by the values in the given column, and computes the given aggregate quantity for each group.
Namespace:
Meta.Numerics.Data
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public FrameTable GroupBy<T>(
string groupByColumnName,
Func<FrameView, T> aggregator,
string aggregateColumnName
)
Public Function GroupBy(Of T) (
groupByColumnName As String,
aggregator As Func(Of FrameView, T),
aggregateColumnName As String
) As FrameTable
public:
generic<typename T>
FrameTable^ GroupBy(
String^ groupByColumnName,
Func<FrameView^, T>^ aggregator,
String^ aggregateColumnName
)
member GroupBy :
groupByColumnName : string *
aggregator : Func<FrameView, 'T> *
aggregateColumnName : string -> FrameTable
Parameters
- groupByColumnName
- Type: SystemString
The name of the column to group by. - aggregator
- Type: SystemFuncFrameView, T
A function that computes the aggregate quantity. - aggregateColumnName
- Type: SystemString
The name of the column for the aggregate output.
Type Parameters
- T
- The type of the aggregate output.
Return Value
Type:
FrameTableA new data frame containing the requested aggregate values for each group.
Remarks See Also