Click or drag to resize
SeriesExtensionsFillMissingK, T Method (SeriesK, T, Direction)
Fill missing values in the series with the nearest available value (using the specified direction). The default direction is `Direction.Backward`. Note that the series may still contain missing values after call to this function. This operation can only be used on ordered series. ## Example let sample = Series.ofValues [ Double.NaN; 1.0; Double.NaN; 3.0 ] // Returns a series consisting of [1; 1; 3; 3] sample.FillMissing(Direction.Backward) // Returns a series consisting of [<missing>; 1; 1; 3] sample.FillMissing(Direction.Forward) ## Parameters - `direction` - Specifies the direction used when searching for the nearest available value. `Backward` means that we want to look for the first value with a smaller key while `Forward` searches for the nearest greater key. [category:Missing values]

Namespace:  Deedle
Assembly:  Deedle (in Deedle.dll) Version: 1.2
Syntax
C#
public static Series<K, T> FillMissing<K, T>(
	this Series<K, T> series,
	[OptionalAttribute] Direction direction
)

Parameters

series
Type: DeedleSeriesK, T

[Missing <param name="series"/> documentation for "M:Deedle.SeriesExtensions.FillMissing``2(Deedle.Series{``0,``1},Deedle.Direction)"]

direction (Optional)
Type: DeedleDirection

[Missing <param name="direction"/> documentation for "M:Deedle.SeriesExtensions.FillMissing``2(Deedle.Series{``0,``1},Deedle.Direction)"]

Type Parameters

K
T

Return Value

Type: SeriesK, T

[Missing <returns> documentation for "M:Deedle.SeriesExtensions.FillMissing``2(Deedle.Series{``0,``1},Deedle.Direction)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SeriesK, T. 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