Returns a new data frame that aggregates the columns according to the specified grouping.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<R1, (C , string )> AggregateBy<R1>(
Grouping<R1> grouping,
params AggregatorGroup[] aggregators
)
Public Function AggregateBy(Of R1) (
grouping As Grouping(Of R1),
ParamArray aggregators As AggregatorGroup()
) As DataFrame(Of R1, ( As C, As String))
public:
generic<typename R1>
DataFrame<R1, ValueTuple<C, String^>>^ AggregateBy(
Grouping<R1>^ grouping,
... array<AggregatorGroup^>^ aggregators
)
member AggregateBy :
grouping : Grouping<'R1> *
aggregators : AggregatorGroup[] -> DataFrame<'R1, ValueTuple<'C, string>>
Parameters
- grouping
- Type: Extreme.DataAnalysisGroupingR1
A grouping object. - aggregators
- Type: Extreme.DataAnalysisAggregatorGroup
One or more aggregators to apply to each group.
Type Parameters
- R1
- The element type of the grouping column.
Return Value
Type:
DataFrameR1,
ValueTupleC,
StringA new data frame with values the result of
applying
aggregators
to each group of the remaining columns.
The rows are indexed by the unique elements
of the grouping vector. The columns are indexed by a multi-level index
consisting of the original column key and the name of the aggregator.
Reference