imputer 1 = imputer(missing_values = 'NaN', strategy = 'mean', axis = 0) code example
Example: sciket learn imputer code
from sklearn.preprocessing import Imputerimputer = Imputer(missing_values = 'NaN', strategy = 'mean', axis = 0)imputer = imputer.fit(X[:, 1:3])X[:, 1:3] = imputer.transform(X[:, 1:3])