Skip to content

Instantly share code, notes, and snippets.

@AayushSameerShah
Created July 4, 2022 10:54
Show Gist options
  • Save AayushSameerShah/d34b19c848f8913988ad6efa71cd1bb9 to your computer and use it in GitHub Desktop.
Save AayushSameerShah/d34b19c848f8913988ad6efa71cd1bb9 to your computer and use it in GitHub Desktop.
This is the code snippet from the article pasted as a link in the column, where we can impute the NaN values throught Randomforest
#pip install misspy for installation
from missingpy import MissForest
imputer = MissForest()
X_imputed = imputer.fit_transform(X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment