Sklearn Simple Imputer icon

Sklearn Simple Imputer

Handle missing values using scikit-learn SimpleImputer

Fit Transform

AI-generated

Summary

Fit imputer on selected columns and transform data

Inputs

  • columns (required) — Comma-separated list of columns to impute
  • strategy — Imputation strategy (mean, median, most_frequent, constant)
  • fillValue — Value to use for constant strategy
  • pythonPath — Path to Python executable with scikit-learn installed

Output shape

A list of records; each record includes the original data with the selected columns replaced by their imputed values

The first record also contains 'imputer' and 'statistics' fields with model metadata; subsequent records only have the imputed column values

Examples

Example 1: Impute missing values in numeric columns using the mean strategy

Columns=col1,col2,col3; Strategy=mean; Fill Value= (not used)

Example 2: Replace missing entries with a constant value

Columns=col4; Strategy=constant; Fill Value=0

Discussion