Answers for "what to do to make Imputer command run in python"

2

SimpleImputer

imr = Imputer(missing_values='NaN', strategy='median', axis=0)
imr = imr.fit(data[['age']])
data['age'] = imr.transform(data[['age']]).ravel()
Posted by: Guest on June-01-2020

Code answers related to "what to do to make Imputer command run in python"

Browse Popular Code Answers by Language