Returns a new data frame that aggregates the columns grouped by the specified vector.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<R1, (C , string )> AggregateBy<R1>(
IList<R1> groupingVector,
params (C , AggregatorGroup )[] aggregators
)
Public Function AggregateBy(Of R1) (
groupingVector As IList(Of R1),
ParamArray aggregators As ( As C, As AggregatorGroup)()
) As DataFrame(Of R1, ( As C, As String))
public:
generic<typename R1>
DataFrame<R1, ValueTuple<C, String^>>^ AggregateBy(
IList<R1>^ groupingVector,
... array<ValueTuple<C, AggregatorGroup^>>^ aggregators
)
member AggregateBy :
groupingVector : IList<'R1> *
aggregators : ValueTuple<'C, AggregatorGroup>[] -> DataFrame<'R1, ValueTuple<'C, string>>
Parameters
- groupingVector
- Type: System.Collections.GenericIListR1
A list that specifies group membership. - aggregators
- Type: SystemValueTupleC, AggregatorGroup
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