0 points

Filter column using isin Pandas


dashboard

Sat Oct 31 2020 00:55:40 GMT+0000 (UTC)

Posted by @ianh #pandas #isin #filter

c3 = pd.Series(['China', 'US'])
df[df['countries'].isin(c1)]
content_copy Copy

https://stackoverflow.com/questions/19960077/how-to-filter-pandas-dataframe-using-in-and-not-in-like-in-sql