Answers for "from sklearn.impute import SimpleImputer imputer = SimpleImputer(missing_values = 'NaN', strategy = 'mean',axis=1) imputer = imputer.fit(df['NO (ug/m3)']) df['NO (ug/m3)'] = imputer.transform(df['NO (ug/m3)'])"

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 "from sklearn.impute import SimpleImputer imputer = SimpleImputer(missing_values = 'NaN', strategy = 'mean',axis=1) imputer = imputer.fit(df['NO (ug/m3)']) df['NO (ug/m3)'] = imputer.transform(df['NO (ug/m3)'])"

Browse Popular Code Answers by Language