Skip to content

Instantly share code, notes, and snippets.

@harsha89
Last active May 28, 2020 06:32
Show Gist options
  • Save harsha89/7d1a52aaecfc0546e59db2828d155a1d to your computer and use it in GitHub Desktop.
Save harsha89/7d1a52aaecfc0546e59db2828d155a1d to your computer and use it in GitHub Desktop.
# Get indexes where name column has value john
indexNames = df[df['name'] == 'john'].index
# Delete these row indexes from dataFrame
df.drop(indexNames , inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment