You are viewing documentation about an older version (1.0.4). View latest version

snowflake.ml.modeling.impute.SimpleImputer

class snowflake.ml.modeling.impute.SimpleImputer(*, missing_values: int | float | str | float64 | None = nan, strategy: str | None = 'mean', fill_value: str | float | None = None, input_cols: str | Iterable[str] | None = None, output_cols: str | Iterable[str] | None = None, drop_input_cols: bool | None = 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.