Python, Machine Learning, Statistics, Data Science, Technology.
replace it with median/or mode strategy from sklearn.impute import SimpleImputer newdf = vehdf.copy() X = newdf.iloc[:,0:19] #separting all numercial independent attribute imputer = SimpleImputer(missing_values=np.nan, strategy='median', verbose=1) #fill missing values with mean column values