evalml.pipelines.components.SimpleImputer.fit¶
-
SimpleImputer.
fit
(X, y=None)[source]¶ - Fits imputer to data. ‘None’ values are converted to np.nan before imputation and are
treated as the same.
- Parameters
X (pd.DataFrame or np.ndarray) – the input training data of shape [n_samples, n_features]
y (pd.Series, optional) – the target training data of length [n_samples]
- Returns
self