Answers for "how to use simpleimputer 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 "how to use simpleimputer in python"

Browse Popular Code Answers by Language