Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas df isin

other = pd.DataFrame({'num_legs': [8, 3], 'num_wings': [0, 2]},
...                      index=['spider', 'falcon'])
>>> df.isin(other)
        num_legs  num_wings
falcon     False       True
dog        False      False
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas #df #isin
ADD COMMENT
Topic
Name
6+3 =