Deedle


Direction

Namespace: Deedle

Specifies in which direction should we look when performing operations such as Series.Pairwise.

Example

 1: 
 2: 
 3: 
 4: 
 5: 
 6: 
 7: 
 8: 
 9: 
10: 
11: 
let abc = 
  [ 1 => "a"; 2 => "b"; 3 => "c" ]
  |> Series.ofObservations

// Using 'Forward' the key of the first element is used
abc.Pairwise(direction=Direction.Forward)
[fsi:[ 1 => ("a", "b"); 2 => ("b", "c") ]]

// Using 'Backward' the key of the second element is used
abc.Pairwise(direction=Direction.Backward)
[fsi:[ 2 => ("a", "b"); 3 => ("b", "c") ]]
val abc : obj
val fsi : Compiler.Interactive.InteractiveSession

Record Fields

Record FieldDescription
Backward
Signature: Direction
Modifiers: static
Forward
Signature: Direction
Modifiers: static
Fork me on GitHub