Click or drag to resize
EnumerableExtensionsToSparseSeriesK, V Method
Convert the `IEnumerable` to a `Series`, using the keys and values of the `KeyValuePair` as keys and values of the resulting series. `OptionalValue.Missing` can be used to denote missing values.

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<K, V> ToSparseSeries<K, V>(
	this IEnumerable<KeyValuePair<K, OptionalValue<V>>> observations
)

Parameters

observations
Type: System.Collections.GenericIEnumerableKeyValuePairK, OptionalValueV

[Missing <param name="observations"/> documentation for "M:Deedle.EnumerableExtensions.ToSparseSeries``2(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{``0,Deedle.OptionalValue{``1}}})"]

Type Parameters

K
V

Return Value

Type: SeriesK, V

[Missing <returns> documentation for "M:Deedle.EnumerableExtensions.ToSparseSeries``2(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{``0,Deedle.OptionalValue{``1}}})"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableKeyValuePairK, OptionalValueV. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also