Module Import alias Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad Str FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr CompareEq NameLoad Str Call AttributeLoad NameLoad attr NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return CompareEq NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareGt AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num orelse Assign NameStore Num Assign NameStore Num If BoolOpAnd CompareEq NameLoad Num CompareEq NameLoad Num body Return AttributeLoad NameLoad attr orelse If CompareLt NameLoad NameLoad body Return NameLoad orelse If CompareGt NameLoad NameLoad body Return NameLoad orelse If CompareEq NameLoad NameLoad body If CompareLt NameLoad NameLoad body Return NameLoad orelse Return NameLoad decorator_list ClassDef bases NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Num Num NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad Str Str Str If CompareNotIn AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad AttributeLoad NameLoad attr If CompareNotIn AttributeLoad NameLoad attr ListLoad Num Num body Raise Call NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad NameLoad keyword Str keyword AttributeLoad NameLoad attr keyword NameLoad If Call AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index UnaryOpNot NameLoad keyword NameLoad orelse Assign NameStore BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Str body If CompareNotEq NameLoad Num body Assign NameStore NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr keyword Str body Return BinOpDiv Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Num Assign NameStore ListComp SubscriptLoad NameLoad Index Call NameLoad NameLoad NameLoad keyword NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Num SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Return NameLoad orelse If CompareEq NameLoad Str body If CompareLt Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Slice Num TupleLoad Num Num body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Return NameLoad orelse If CompareEq NameLoad Str body If CompareEq NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num For TupleStore NameStore TupleStore NameStore NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Slice SubscriptLoad NameLoad Slice body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub Call NameLoad AttributeLoad NameLoad attr Num keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad Call AttributeLoad NameLoad attr keyword Num attr attr Index Num Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Slice Num orelse Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad keyword Num Index Num Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad If CompareEq AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Num body Expr Call NameLoad NameLoad Str If CompareEq AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad NameLoad keyword Str keyword NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index UnaryOpNot AttributeLoad NameLoad attr Index NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Index NameLoad orelse If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad CompareNotEq AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A warnings N/A numpy np N/A numpy.ma ma scipy sparse scipy stats base BaseEstimator TransformerMixin utils check_array utils safe_mask utils.fixes astype utils.sparsefuncs _get_median utils.validation check_is_fitted utils.validation FLOAT_DTYPES externals six N/A zip N/A N/A six moves zip N/A map N/A N/A six moves map N/A __all__ N/A Imputer _get_mask N/A N/A X value_to_mask N/A N/A N/A Compute the boolean mask X == missing_values. N/A N/A N/A value_to_mask NaN N/A N/A np isnan value_to_mask N/A N/A N/A N/A np isnan X N/A N/A N/A X value_to_mask N/A _most_frequent N/A N/A array extra_value n_repeat N/A N/A N/A Compute the most frequent value in a 1d array extended with
       [extra_value] * n_repeat, where extra_value is assumed to be not part
       of the array. N/A N/A N/A array size 0 N/A N/A mode N/A N/A stats mode array N/A most_frequent_value N/A N/A mode N/A 0 N/A 0 N/A most_frequent_count N/A N/A mode N/A 1 N/A 0 N/A N/A most_frequent_value 0 N/A most_frequent_count 0 N/A N/A N/A most_frequent_count 0 N/A n_repeat 0 N/A N/A N/A np nan N/A N/A N/A most_frequent_count n_repeat N/A N/A extra_value N/A N/A N/A most_frequent_count n_repeat N/A N/A most_frequent_value N/A N/A N/A most_frequent_count n_repeat N/A N/A N/A most_frequent_value extra_value N/A N/A most_frequent_value N/A N/A extra_value N/A Imputer N/A BaseEstimator TransformerMixin N/A N/A Imputation transformer for completing missing values.

    Read more in the :ref:`User Guide <imputation>`.

    Parameters
    ----------
    missing_values : integer or "NaN", optional (default="NaN")
        The placeholder for the missing values. All occurrences of
        `missing_values` will be imputed. For missing values encoded as np.nan,
        use the string value "NaN".

    strategy : string, optional (default="mean")
        The imputation strategy.

        - If "mean", then replace missing values using the mean along
          the axis.
        - If "median", then replace missing values using the median along
          the axis.
        - If "most_frequent", then replace missing using the most frequent
          value along the axis.

    axis : integer, optional (default=0)
        The axis along which to impute.

        - If `axis=0`, then impute along columns.
        - If `axis=1`, then impute along rows.

    verbose : integer, optional (default=0)
        Controls the verbosity of the imputer.

    copy : boolean, optional (default=True)
        If True, a copy of X will be created. If False, imputation will
        be done in-place whenever possible. Note that, in the following cases,
        a new copy will always be made, even if `copy=False`:

        - If X is not an array of floating values;
        - If X is sparse and `missing_values=0`;
        - If `axis=0` and X is encoded as a CSR matrix;
        - If `axis=1` and X is encoded as a CSC matrix.

    add_indicator_features : boolean, optional (default=False)
        If True, the transformed ``X`` will have binary indicator features
        appended. These correspond to input features with at least one
        missing value marking which elements have been imputed.

    Attributes
    ----------
    statistics_ : array of shape (n_features,)
        The imputation fill value for each feature if axis == 0.

    imputed_features_ : array of shape (n_features_with_missing, )
        The input features which have been imputed during transform.
        The size of this attribute will be the number of features with
        at least one missing value (and fewer than all in the axis=0 case).

    Notes
    -----
    - When ``axis=0``, columns which only contained missing values at `fit`
      are discarded upon `transform`.
    - When ``axis=1``, an exception is raised if there are rows for which it is
      not possible to fill in the missing values (e.g., because they only
      contain missing values).
     __init__ N/A N/A self missing_values strategy axis verbose copy add_indicator_features N/A NaN mean 0 0 True False N/A N/A N/A self missing_values missing_values N/A N/A self strategy strategy N/A N/A self axis axis N/A N/A self verbose verbose N/A N/A self copy copy N/A N/A self add_indicator_features add_indicator_features N/A fit N/A N/A self X y N/A None N/A N/A Fit the imputer on X.

        Parameters
        ----------
        X : {array-like, sparse matrix}, shape (n_samples, n_features)
            Input data, where ``n_samples`` is the number of samples and
            ``n_features`` is the number of features.

        Returns
        -------
        self : object
            Returns self.
         N/A allowed_strategies N/A mean median most_frequent N/A N/A N/A self strategy allowed_strategies N/A N/A N/A ValueError N/A N/A Can only use these strategies: {0}  got strategy={1} format allowed_strategies N/A self strategy N/A N/A N/A self axis N/A 0 1 N/A N/A N/A ValueError N/A N/A Can only impute missing values on axis 0 and 1,  got axis={0} format N/A self axis N/A N/A N/A self axis 0 N/A N/A X N/A check_array X accept_sparse csc dtype N/A np float64 force_all_finite False N/A N/A N/A sparse issparse X N/A N/A N/A self statistics_ N/A N/A self _sparse_fit X N/A self strategy N/A self missing_values N/A self axis N/A N/A N/A self statistics_ N/A N/A self _dense_fit X N/A self strategy N/A self missing_values N/A self axis N/A self N/A _sparse_fit N/A N/A self X strategy missing_values axis N/A N/A N/A Fit the transformer on sparse data. N/A N/A axis 1 N/A N/A X N/A N/A X tocsr N/A N/A X N/A N/A X tocsc N/A N/A missing_values 0 N/A N/A n_zeros_axis N/A N/A np zeros N/A N/A X shape N/A N/A axis dtype int N/A N/A n_zeros_axis N/A N/A N/A X shape N/A axis N/A N/A np diff N/A X indptr N/A N/A strategy mean N/A N/A N/A missing_values 0 N/A N/A n_non_missing n_zeros_axis N/A mask_missing_values N/A _get_mask N/A X data missing_values N/A mask_valids N/A N/A np logical_not mask_missing_values N/A new_data N/A N/A N/A X data copy N/A N/A new_data N/A mask_missing_values 0 N/A X N/A N/A sparse csc_matrix N/A new_data N/A X indices N/A X indptr copy False N/A sums N/A N/A X sum axis 0 N/A mask_non_zeros N/A N/A sparse csc_matrix N/A N/A N/A mask_valids astype N/A np float64 N/A X indices N/A X indptr copy False N/A s N/A N/A mask_non_zeros sum axis 0 N/A n_non_missing N/A N/A np add n_non_missing s N/A N/A sums N/A N/A X sum axis axis N/A n_non_missing N/A N/A np diff N/A X indptr N/A N/A N/A np errstate all ignore N/A N/A N/A N/A N/A np ravel sums N/A N/A np ravel n_non_missing N/A N/A columns_all N/A N/A np hsplit N/A X data N/A N/A X indptr N/A 1 -1 N/A mask_missing_values N/A _get_mask N/A X data missing_values N/A mask_valids N/A N/A np hsplit N/A N/A np logical_not mask_missing_values N/A N/A X indptr N/A 1 -1 N/A columns N/A N/A col N/A N/A astype mask bool copy False N/A N/A col mask N/A zip columns_all mask_valids N/A N/A strategy median N/A N/A median N/A N/A np empty N/A len columns N/A N/A i column N/A enumerate columns N/A N/A N/A median N/A i N/A _get_median column N/A n_zeros_axis N/A i N/A median N/A N/A N/A strategy most_frequent N/A N/A most_frequent N/A N/A np empty N/A len columns N/A N/A i column N/A enumerate columns N/A N/A N/A most_frequent N/A i N/A _most_frequent column 0 N/A n_zeros_axis N/A i N/A most_frequent N/A _dense_fit N/A N/A self X strategy missing_values axis N/A N/A N/A Fit the transformer on dense data. N/A X N/A check_array X force_all_finite False N/A mask N/A _get_mask X missing_values N/A masked_X N/A N/A ma masked_array X mask mask N/A N/A strategy mean N/A N/A mean_masked N/A N/A N/A np ma mean masked_X axis axis N/A mean N/A N/A N/A np ma getdata mean_masked N/A N/A mean N/A N/A N/A N/A np ma getmask mean_masked N/A np nan N/A mean N/A N/A N/A strategy median N/A N/A N/A N/A tuple N/A N/A int v N/A v N/A N/A N/A N/A np __version__ split . N/A 2 N/A 1 5 N/A N/A N/A masked_X mask N/A N/A np logical_or N/A masked_X mask N/A N/A np isnan X N/A median_masked N/A N/A N/A np ma median masked_X axis axis N/A median N/A N/A N/A np ma getdata median_masked N/A N/A median N/A N/A N/A N/A np ma getmaskarray median_masked N/A np nan N/A median N/A N/A N/A strategy most_frequent N/A N/A N/A axis 0 N/A N/A X N/A N/A X transpose N/A mask N/A N/A mask transpose N/A most_frequent N/A N/A np empty N/A N/A X shape N/A 0 N/A N/A i N/A row row_mask N/A enumerate N/A zip N/A X N/A N/A mask N/A N/A N/A row_mask N/A N/A N/A N/A np logical_not row_mask astype N/A np bool N/A row N/A row N/A row_mask N/A N/A most_frequent N/A i N/A _most_frequent row N/A np nan 0 N/A most_frequent N/A _sparse_transform N/A N/A self X valid_stats valid_idx N/A N/A N/A transformer on sparse data. N/A mask N/A _get_mask N/A X data N/A self missing_values N/A indexes N/A N/A N/A np repeat N/A N/A np arange N/A N/A len N/A X indptr 1 dtype N/A np int N/A N/A np diff N/A X indptr N/A mask N/A N/A N/A X data N/A mask N/A astype N/A valid_stats N/A indexes N/A X dtype copy False N/A mask_matrix N/A N/A X __class__ N/A mask N/A N/A N/A X indices copy N/A N/A N/A X indptr copy shape N/A X shape dtype N/A X dtype N/A N/A N/A mask_matrix eliminate_zeros N/A features_with_missing_values N/A N/A N/A N/A N/A N/A mask_matrix sum axis 0 A nonzero N/A 1 N/A features_mask N/A safe_mask mask_matrix features_with_missing_values N/A imputed_mask N/A mask_matrix N/A N/A N/A features_mask N/A N/A N/A self axis 0 N/A N/A N/A self imputed_features_ N/A valid_idx N/A features_with_missing_values N/A N/A N/A self imputed_features_ features_with_missing_values N/A N/A self add_indicator_features N/A N/A X N/A N/A sparse hstack N/A X imputed_mask N/A X N/A _dense_transform N/A N/A self X valid_stats valid_idx N/A N/A N/A transformer on dense data. N/A mask N/A _get_mask X N/A self missing_values N/A n_missing N/A N/A np sum mask axis N/A self axis N/A values N/A N/A np repeat valid_stats n_missing N/A N/A N/A self axis 0 N/A N/A coordinates N/A N/A N/A np where N/A N/A mask transpose N/A -1 N/A N/A coordinates mask N/A N/A X N/A coordinates values N/A features_with_missing_values N/A N/A N/A np where N/A N/A np any mask axis 0 N/A 0 N/A imputed_mask N/A mask N/A N/A N/A features_with_missing_values N/A N/A N/A self axis 0 N/A N/A N/A self imputed_features_ N/A valid_idx N/A features_with_missing_values N/A N/A N/A self imputed_features_ features_with_missing_values N/A N/A self add_indicator_features N/A N/A X N/A N/A np hstack N/A X imputed_mask N/A X N/A transform N/A N/A self X N/A N/A N/A Impute all missing values in X.

        Parameters
        ----------
        X : {array-like, sparse matrix}, shape = (n_samples, n_features)
            The input data to complete.

        Return
        ------
        X_new : {array-like, sparse matrix},
                Transformed array.
                shape (n_samples, n_features_new) when
                ``add_indicator_features`` is False,
                shape (n_samples, n_features_new + len(imputed_features_)
                when ``add_indicator_features`` is True.
         N/A N/A N/A self axis 0 N/A N/A N/A check_is_fitted self statistics_ N/A N/A N/A self axis 1 N/A N/A X N/A check_array X accept_sparse csr dtype FLOAT_DTYPES force_all_finite False copy N/A self copy N/A N/A N/A sparse issparse X N/A N/A statistics N/A N/A self _sparse_fit X N/A self strategy N/A self missing_values N/A self axis N/A N/A statistics N/A N/A self _dense_fit X N/A self strategy N/A self missing_values N/A self axis N/A N/A X N/A check_array X accept_sparse csc dtype FLOAT_DTYPES force_all_finite False copy N/A self copy N/A statistics N/A self statistics_ N/A invalid_mask N/A N/A np isnan statistics N/A valid_mask N/A N/A np logical_not invalid_mask N/A valid_statistics N/A statistics N/A valid_mask N/A valid_idx N/A N/A N/A np where valid_mask N/A 0 N/A missing N/A N/A N/A np arange N/A N/A X shape N/A N/A N/A self axis N/A invalid_mask N/A N/A N/A N/A self axis 0 N/A N/A invalid_mask any N/A N/A N/A self verbose N/A N/A N/A N/A warnings warn N/A Deleting features without observed values: %s missing N/A X N/A X N/A N/A N/A valid_idx N/A N/A N/A N/A N/A self axis 1 N/A N/A invalid_mask any N/A N/A N/A ValueError N/A Some rows only contain missing values: %s missing N/A N/A N/A N/A sparse issparse X N/A N/A self missing_values 0 N/A N/A X N/A N/A self _sparse_transform X valid_statistics valid_idx N/A N/A N/A N/A sparse issparse X N/A N/A X N/A N/A X toarray N/A X N/A N/A self _dense_transform X valid_statistics valid_idx N/A X N/A N/A