Click or drag to resize
SeriesModuleApplyLevelK1, K2, V, R Method
Groups the elements of the input series in groups based on the keys produced by `level` and then aggregates series representing each group using the specified function `op`. The result is a new series containing the aggregates of each group. This operation is designed to be used with [hierarchical indexing](../frame.html#indexing). ## Parameters - `series` - An input series to be aggregated - `op` - A function that takes a series and produces an aggregated result - `level` - A delegate that returns a new group key, based on the key in the input series [category:Hierarchical index operations]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<K2, R> ApplyLevel<K1, K2, V, R>(
	FSharpFunc<K1, K2> level,
	FSharpFunc<Series<K1, V>, R> op,
	Series<K1, V> series
)

Parameters

level
Type: Microsoft.FSharp.CoreFSharpFuncK1, K2

[Missing <param name="level"/> documentation for "M:Deedle.SeriesModule.ApplyLevel``4(Microsoft.FSharp.Core.FSharpFunc{``0,``1},Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``0,``2},``3},Deedle.Series{``0,``2})"]

op
Type: Microsoft.FSharp.CoreFSharpFuncSeriesK1, V, R

[Missing <param name="op"/> documentation for "M:Deedle.SeriesModule.ApplyLevel``4(Microsoft.FSharp.Core.FSharpFunc{``0,``1},Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``0,``2},``3},Deedle.Series{``0,``2})"]

series
Type: DeedleSeriesK1, V

[Missing <param name="series"/> documentation for "M:Deedle.SeriesModule.ApplyLevel``4(Microsoft.FSharp.Core.FSharpFunc{``0,``1},Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``0,``2},``3},Deedle.Series{``0,``2})"]

Type Parameters

K1
K2
V
R

Return Value

Type: SeriesK2, R

[Missing <returns> documentation for "M:Deedle.SeriesModule.ApplyLevel``4(Microsoft.FSharp.Core.FSharpFunc{``0,``1},Microsoft.FSharp.Core.FSharpFunc{Deedle.Series{``0,``2},``3},Deedle.Series{``0,``2})"]

See Also