Skip to content

Instantly share code, notes, and snippets.

@liannewriting
Last active January 21, 2020 15:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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