Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/missing_values2.py Secret

Created May 29, 2021
Embed
What would you like to do?
# Filling Values with mean
from sklearn.impute import SimpleImputer
mean_values = SimpleImputer(strategy='mean')
data1 = mean_values.fit_transform(data)
print(data1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment