snowflake.ml.modeling.impute.SimpleImputerΒΆ
- class snowflake.ml.modeling.impute.SimpleImputer(*, missing_values: Optional[Union[int, float, str, float64]] = nan, strategy: Optional[str] = 'mean', fill_value: Optional[Union[str, float]] = None, input_cols: Optional[Union[str, Iterable[str]]] = None, output_cols: Optional[Union[str, Iterable[str]]] = None, drop_input_cols: Optional[bool] = False)ΒΆ
Bases:
BaseTransformer
Methods
fit
(dataset)Compute values to impute for the dataset according to the strategy.
transform
(dataset)Transform the input dataset by imputing the computed statistics in the input columns.