template<typename T, size_t N>
void
fill_missing(const std::array col_names, fill_policy policy, const std::array values = { }, int limit = -1);
|
It fills all the "missing values" with the given values, and/or using the given method
(See fill_policy above). Missing is determined by being NaN for types that have NaN.
For types without NaN (e.g. string), default value is considered missing value
|
T: Type of the column(s) in col_names array
N: Size of col_names and values array
col_names: An array of names specifying the columns to fill.
policy: Specifies the method to use to fill the missing values.
For example; forward fill, values, etc.
values: If the policy is "values", use these values to fill the missing
holes. Each value corresponds to the same index in the
col_names array.
limit: Specifies how many values to fill. Default is -1 meaning fill all missing values.
|