Data Frame<R, C>.Replace Missing Values Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Replace | Returns a new data frame whose columns have their missing values replaced with the next or previous non-missing value. |
Replace | Returns a new data frame whose columns of the specified type have their missing values replaced with the specified value. |
Replace | Returns a new data frame whose columns of the specified type have their missing values replaced with the corresponding value from a row vector. |
ReplaceMissingValues<T>(T)
Returns a new data frame whose columns of the specified type
have their missing values replaced with the specified value.
public virtual DataFrame<R, C> ReplaceMissingValues<T>(
T value
)
Parameters
- value T
- The replacement value.
Type Parameters
- T
Return Value
DataFrame<R, C>A new data frame.
ReplaceMissingValues<T>(Vector<T>)
Returns a new data frame whose columns of the specified type
have their missing values replaced with the corresponding
value from a row vector.
public virtual DataFrame<R, C> ReplaceMissingValues<T>(
Vector<T> values
)
Parameters
- values Vector<T>
- A vector that contains the replacement value for each column.
Type Parameters
- T
Return Value
DataFrame<R, C>A new data frame.
ReplaceMissingValues(Direction, Int32)
Returns a new data frame whose columns have their missing values replaced
with the next or previous non-missing value.
public DataFrame<R, C> ReplaceMissingValues(
Direction fillDirection,
int limit = 1073741824
)
Parameters
- fillDirection Direction
- Specifies whether missing values should be replaced by the previous (Forward) or next (Backward) non-missing values.
- limit Int32 (Optional)
- The maximum number of successive missing values that may be filled.
Return Value
DataFrame<R, C>A new data frame.