-
-
Save quantra-go-algo/273e6b316678810e685bd567e468814a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Dropping columns in the data higher than 60% threshold | |
data = data[data.columns[data.isnull().mean() < threshold]] | |
#Dropping rows in the data higher than 60% threshold | |
data = data.loc[data.isnull().mean(axis=1) < threshold] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment