Applies the specified aggregators to all the columns in the data frame.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<R1, C1> AggregateBy<R1, C1>(
Grouping<R1> grouping,
IEnumerable<(C , AggregatorGroup )> aggregators,
Index<C1> newIndex
)
Public Function AggregateBy(Of R1, C1) (
grouping As Grouping(Of R1),
aggregators As IEnumerable(Of ( As C, As AggregatorGroup)),
newIndex As Index(Of C1)
) As DataFrame(Of R1, C1)
public:
generic<typename R1, typename C1>
DataFrame<R1, C1>^ AggregateBy(
Grouping<R1>^ grouping,
IEnumerable<ValueTuple<C, AggregatorGroup^>>^ aggregators,
Index<C1>^ newIndex
)
member AggregateBy :
grouping : Grouping<'R1> *
aggregators : IEnumerable<ValueTuple<'C, AggregatorGroup>> *
newIndex : Index<'C1> -> DataFrame<'R1, 'C1>
Parameters
- grouping
- Type: Extreme.DataAnalysisGroupingR1
The grouping object. - aggregators
- Type: System.Collections.GenericIEnumerableValueTupleC, AggregatorGroup
One or more aggregators to use. - newIndex
- Type: Extreme.DataAnalysisIndexC1
The new column index.
Type Parameters
- R1
- The type of the group keys.
- C1
- The type of the new column keys.
Return Value
Type:
DataFrameR1,
C1A new data frame that contains the result of the aggregations
with rows indexed by the names of the aggregators and columns indexed
by the data frame's column index.
Reference