Created
July 13, 2021 07:42
-
-
Save seahrh/3e00d9f376a82b38ea074fe2ae7cb663 to your computer and use it in GitHub Desktop.
pandas drop rows
This file contains hidden or 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
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