Missing value indicator

A missing value indicator is a binary column that signals that the original value was absent. It preserves the information that the absence itself can carry, such as an undeclared income, which imputation erases. You get it with add_indicator=True or MissingIndicator.

Example

SimpleImputer(strategy='median', add_indicator=True)

Related concepts

The whole glossary