Click or drag to resize
SeriesModuleReduceLevelK1, K2, T Method
Groups the elements of the input series in groups based on the keys produced by `level` and then aggregates elements in 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 is used to aggregate elements of each group - `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, T> ReduceLevel<K1, K2, T>(
	FSharpFunc<K1, K2> level,
	FSharpFunc<T, FSharpFunc<T, T>> op,
	Series<K1, T> series
)

Parameters

level
Type: Microsoft.FSharp.CoreFSharpFuncK1, K2

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

op
Type: Microsoft.FSharp.CoreFSharpFuncT, FSharpFuncT, T

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

series
Type: DeedleSeriesK1, T

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

Type Parameters

K1
K2
T

Return Value

Type: SeriesK2, T

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

See Also