Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created May 29, 2021 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/b642dcd3e7de2b5822240bc38a70c6f0 to your computer and use it in GitHub Desktop.
Save amankharwal/b642dcd3e7de2b5822240bc38a70c6f0 to your computer and use it in GitHub Desktop.
# 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