Module impute (1.11.1)

Transformers for missing value imputation. This module is styled after scikit-learn's preprocessing module: https://scikit-learn.org/stable/modules/impute.html.

Classes

SimpleImputer

SimpleImputer(strategy: typing.Literal["mean", "median", "most_frequent"] = "mean")

Univariate imputer for completing missing values with simple strategies.

Replace missing values using a descriptive statistic (e.g. mean, median, or most frequent) along each column.

Parameter
Name Description
strategy {'mean', 'median', 'most_frequent'}, default='mean'

The imputation strategy. 'mean': replace missing values using the mean along the axis. 'median':replace missing values using the median along the axis. 'most_frequent', replace missing using the most frequent value along the axis.