Applies the specified aggregation function to the values
in each column grouped by the specified grouping column.
Namespace: Extreme.DataAnalysisAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.16312.0)
public DataFrame<R1, C> AggregateBy<R1, T, U>(
C groupingColumn,
Func<Vector<T>, U> aggregator
)
Public Function AggregateBy(Of R1, T, U) (
groupingColumn As C,
aggregator As Func(Of Vector(Of T), U)
) As DataFrame(Of R1, C)
public:
generic<typename R1, typename T, typename U>
DataFrame<R1, C>^ AggregateBy(
C groupingColumn,
Func<Vector<T>^, U>^ aggregator
)
member AggregateBy :
groupingColumn : 'C *
aggregator : Func<Vector<'T>, 'U> -> DataFrame<'R1, 'C>
Parameters
- groupingColumn
- Type: C
The key of the grouping column. - aggregator
- Type: SystemFuncVectorT, U
A function that transforms a vector of type T
to a value of type U.
Type Parameters
- R1
- The element type of the grouping column.
- T
- The element type of the columns to group.
- U
- The type of the result of the aggregation.
Return Value
Type:
DataFrameR1,
CA new data frame with rows indexed by the unique elements of
column
groupingColumn and values the result of
aggregator applied to each grouping.
Numerical Libraries
Supported in: 6.0
Reference