imputer = SimpleImputer.fit(USA_Housing_num)
X=SimpleImputer.transform(USA_Housing_num)
USA_Housing_tr=pd.Dataframe(X,column=USA_Housing_num.column)
TypeError Traceback (most recent call last)
in
1 #Remove the imputer instance to the training data
----> 2 imputer = SimpleImputer.fit(USA_Housing_num,strategy=“median”)
3 X=SimpleImputer.transform(USA_Housing_num)
4
5 USA_Housing_tr=pd.Dataframe(X,column=USA_Housing_num.column)
TypeError: fit() got an unexpected keyword argument ‘strategy’
How can i fix it??
Please reply.