Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# impute missing values in item weight by mean
train_data.Item_Weight.fillna(train_data.Item_Weight.mean(),inplace=True)
# impute outlet size in training data by mode
train_data.Outlet_Size.fillna(train_data.Outlet_Size.mode()[0],inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment