Skip to content

Instantly share code, notes, and snippets.

@amankharwal

amankharwal/missing_values3.py Secret

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