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

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.