Does the Imputer in sklearn can deal with different types of data?
For example string and numbers are both represented as ?
,
when applying the Imputer it works with only one strategy.
Does the Imputer in sklearn can deal with different types of data?
For example string and numbers are both represented as ?
,
when applying the Imputer it works with only one strategy.
As far as I know, Imputer only works with numeric data types, and imputes values that are nan
, not the string ?
.
To be able to impute string values, see this answer.