Click or drag to resize
SeriesK, VPairwise Method (Boundary)
Returns a series containing an element and its neighbor for each input. The returned series is one key shorter (it does not contain a value for the first or last key depending on `boundary`). If `boundary` is other than `Boundary.Skip`, then the key is included in the returned series, but its value is missing. ## Parameters - `series` - The input series to be aggregated. - `boundary` - Specifies the direction in which the series is aggregated and how the corner case is handled. If the value is `Boundary.AtEnding`, then the function returns value and its successor, otherwise it returns value and its predecessor. ## Example let input = series [ 1 => 'a'; 2 => 'b'; 3 => 'c'] let res = input.Pairwise() res = series [2 => ('a', 'b'); 3 => ('b', 'c') ] [category:Windowing, chunking and grouping]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public Series<K, DataSegment<Tuple<V, V>>> Pairwise(
	Boundary boundary
)

Parameters

boundary
Type: DeedleBoundary

[Missing <param name="boundary"/> documentation for "M:Deedle.Series`2.Pairwise(Deedle.Boundary)"]

Return Value

Type: SeriesK, DataSegmentTupleV, V

[Missing <returns> documentation for "M:Deedle.Series`2.Pairwise(Deedle.Boundary)"]

See Also