Click or drag to resize
SeriesModuleApplyLevelOptionalK1, 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. The result of a group may be None, in which case the group will have no representation in the resulting series. 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 optional 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> ApplyLevelOptional<K1, K2, V, R>(
	FSharpFunc<K1, K2> level,
	FSharpFunc<Series<K1, V>, FSharpOption<R>> op,
	Series<K1, V> series
)

Parameters

level
Type: Microsoft.FSharp.CoreFSharpFuncK1, K2

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

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

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

series
Type: DeedleSeriesK1, V

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

Type Parameters

K1
K2
V
R

Return Value

Type: SeriesK2, R

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

See Also