I am using
IterativeImputer to impute my dataset.
from sklearn.experimental import enable_iterative_imputer from sklearn.impute import IterativeImputer imp = IterativeImputer(random_state=0, max_iter=100, verbose=10) imp.fit(hosp) hosp_imputed = pd.DataFrame(imp.transform(hosp), columns=cols)
I have a boolean column "ICU" that had 8 missing values. But after imputation, it outputs very weird results. Please see the attached screenshot. Can you please let me know what am I doing wrong?