Skip to content

Instantly share code, notes, and snippets.

@seahrh
Created July 13, 2021 07:42
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 seahrh/3e00d9f376a82b38ea074fe2ae7cb663 to your computer and use it in GitHub Desktop.
Save seahrh/3e00d9f376a82b38ea074fe2ae7cb663 to your computer and use it in GitHub Desktop.
pandas drop rows
index = df[df["title"].str.len() == 0].index
df.drop(index=index, inplace=True)
index = df[df["is_disamb"] == 1].index
df.drop(index=index, inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment