Error on importing simpleimputer

when i am importing from sklearn.preprocessing import SimpleImputer it is showing error

Hi Akanksha_Bali,

Try using

from sklearn.impute import SimpleImputer
imputer = SimpleImputer(strategy=“median”)

Thanks!

1 Like

thankyou so much sir

Hi Akanksha_Bali,

I am a fellow learner just like you. I hope I was able to help. You can post your doubts on the forum. Cloudxlab has a great team of instructors.

Thanks!