yasc.preprocessing.rf_fill_missing(data, column, target=None, n_digits=0, **kwargs)¶Fill missing values with predicted values output by a random forest regressor.
pandas.core.frame.DataFrameObserved data.
strName of the column to fill. This column should be a numeric.
str, optionalName of target column to predict. Defaults to None if data contains no target.
Precision in decimal digits to round the predicted values.
All keyword arguments that can be passed to
sklearn.ensemble.RandomForestRegressor.
pandas.core.frame.DataFrameReturns a data frame with missing values filled in column column.
Raises a TypeError when column is not numeric.