(self, X, y=None)
Fit the imputer on input `X`.

        Note: all imputations should have a `fit_transform` method,
        but only some (like IterativeImputer in sklearn) also support inductive
        mode using `fit` or `fit_transform` on `X_train` and then `transform`
        on new `X_test`.
Fit the imputer on input `X`.
Fit the imputer on input X .
def fit(self, X, y=None):
        """
        Fit the imputer on input `X`.

        Note: all imputations should have a `fit_transform` method,
        but only some (like IterativeImputer in sklearn) also support inductive
        mode using `fit` or `fit_transform` on `X_train` and then `transform`
        on new `X_test`.
        """
        raise ValueError(
            "%s.fit not implemented! This imputation algorithm likely "
            "doesn't support inductive mode. Only fit_transform is "
            "supported at this time." % (
                self.__class__.__name__,))
def fit ( self , X , y = None ) : raise ValueError ( "%s.fit not implemented! This imputation algorithm likely " "doesn't support inductive mode. Only fit_transform is " "supported at this time." % ( self . __class__ . __name__ , ) )