Deedle


EnumerableExtensions

Namespace: Deedle

Contains C#-friendly extension methods for various instances of IEnumerable that can be used for creating Series<'K, 'V> from the IEnumerable value. You can create an ordinal series from IEnumerable<'T> or an indexed series from IEnumerable<KeyValuePair<'K, 'V>> or from IEnumerable<KeyValuePair<'K, OptionalValue<'V>>>.

Static members

Static memberDescription
ToOrdinalSeries(observations)
Signature: observations:seq<'V> -> Series<int,'V>
Type parameters: 'V

Convert the IEnumerable to a Series, using the seuqence as the values of the resulting series. The keys are generated ordinarilly, starting from 0.

ToSeries(observations)
Signature: observations:seq<KeyValuePair<'K,'V>> -> Series<'K,'V>
Type parameters: 'K, 'V

Convert the IEnumerable to a Series, using the keys and values of the KeyValuePair as keys and values of the resulting series.

ToSparseSeries(observations)
Signature: observations:seq<KeyValuePair<'K,OptionalValue<'V>>> -> Series<'K,'V>
Type parameters: 'K, 'V

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.

Fork me on GitHub