Applies the aggregators from a dictionary to selected columns
in the data frame.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public DataFrame<R1, C> AggregateBy<R1>(
Grouping<R1> grouping,
IDictionary<C, AggregatorGroup> aggregators
)
Public Function AggregateBy(Of R1) (
grouping As Grouping(Of R1),
aggregators As IDictionary(Of C, AggregatorGroup)
) As DataFrame(Of R1, C)
public:
generic<typename R1>
DataFrame<R1, C>^ AggregateBy(
Grouping<R1>^ grouping,
IDictionary<C, AggregatorGroup^>^ aggregators
)
member AggregateBy :
grouping : Grouping<'R1> *
aggregators : IDictionary<'C, AggregatorGroup> -> DataFrame<'R1, 'C>
Parameters
- grouping
- Type: Extreme.DataAnalysisGroupingR1
The grouping object. - aggregators
- Type: System.Collections.GenericIDictionaryC, AggregatorGroup
A dictionary that maps column keys to aggregators.
Type Parameters
- R1
- The type of the group keys.
Return Value
Type:
DataFrameR1,
CA new data frame with a column for each entry in
aggregators
which is the result of applying the aggregator in the entry's value
to the column with the entry's key. The order of the columns is preserved.
Reference