Click or drag to resize
SeriesK, VAggregateTNewKey, R Method (AggregationK, FuncDataSegmentSeriesK, V, KeyValuePairTNewKey, OptionalValueR)
Aggregates an ordered series using the method specified by `Aggregation<K>` and then applies the provided `observationSelector` on each window or chunk to produce the result which is returned as a new series. The selector returns both the key and the value. ## Parameters - `aggregation` - Specifies the aggregation method using `Aggregation<K>`. This is a discriminated union listing various chunking and windowing conditions. - `observationSelector` - A function that is called on each chunk to obtain a key and a value. [category:Windowing, chunking and grouping]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public Series<TNewKey, R> Aggregate<TNewKey, R>(
	Aggregation<K> aggregation,
	Func<DataSegment<Series<K, V>>, KeyValuePair<TNewKey, OptionalValue<R>>> observationSelector
)

Parameters

aggregation
Type: DeedleAggregationK

[Missing <param name="aggregation"/> documentation for "M:Deedle.Series`2.Aggregate``2(Deedle.Aggregation{`0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},System.Collections.Generic.KeyValuePair{``0,Deedle.OptionalValue{``1}}})"]

observationSelector
Type: SystemFuncDataSegmentSeriesK, V, KeyValuePairTNewKey, OptionalValueR

[Missing <param name="observationSelector"/> documentation for "M:Deedle.Series`2.Aggregate``2(Deedle.Aggregation{`0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},System.Collections.Generic.KeyValuePair{``0,Deedle.OptionalValue{``1}}})"]

Type Parameters

TNewKey
R

Return Value

Type: SeriesTNewKey, R

[Missing <returns> documentation for "M:Deedle.Series`2.Aggregate``2(Deedle.Aggregation{`0},System.Func{Deedle.DataSegment{Deedle.Series{`0,`1}},System.Collections.Generic.KeyValuePair{``0,Deedle.OptionalValue{``1}}})"]

See Also