I used fancyimpute and iterativeimputer() to impute missing values in my data set but the kernal keeps on running and it does not give an output. I don't know what is wrong.
I tried this code -
from fancyimpute import IterativeImputer
mice = IterativeImputer().fit_transform(data)
I want to impute the missing values for all my numerical and categorical data similar to how MICE used to work but this IterativeImputer is not taking categorical variables into account and is giving the error 'cannot convert from string to float' for categorical variables.