Created
December 20, 2016 23:29
-
-
Save aswad32/b580ef0311878c7bf710c835bba4f35b to your computer and use it in GitHub Desktop.
Python pandas dataframe isin and reverse isin
This file contains 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
#isin | |
df.loc[df['kod'].isin([1,4])] | |
#reverse isin | |
df.loc[~df['kod'].isin([2,3])] |
thank
thank you!
Thank you
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is it negation?