Skip to content

Instantly share code, notes, and snippets.

@byshen
Last active September 29, 2018 02:45
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 byshen/480553f911a8a95ae34a398e994bd18d to your computer and use it in GitHub Desktop.
Save byshen/480553f911a8a95ae34a398e994bd18d to your computer and use it in GitHub Desktop.

create a new dataframe by filter according to a column's value in another dataframe.

df1 = df[~df['row].isin(list)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment