Applies the specified aggregation function to the values
in each column grouped by the specified grouping column.
Namespace:
Extreme.DataAnalysis
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
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.
Reference