Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Last active January 21, 2020 15:48
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 liannewriting/6a850fd47c16fc07375babd83a124f8f to your computer and use it in GitHub Desktop.
Save liannewriting/6a850fd47c16fc07375babd83a124f8f to your computer and use it in GitHub Desktop.
data_cleaning_202001
# drop rows with a lot of missing values.
ind_missing = df[df['num_missing'] > 35].index
df_less_missing_rows = df.drop(ind_missing, axis=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment