Published
- 1 min read
pandas dataframe select rows not in list
The solution for this is noted below
pandas dataframe select rows not in list
Solution
df[~df.isin(subset).iloc[:,0]]
Try other methods by searching on the site. That is if this doesn’t work