- I have excel below
id,name,country
1,abc,Austria
2,cde,UK
3,efg,Germany
4,abc,US
- List is below
['UK','France','Poland','Sweden', 'US']
How to extract the row if df['country]
matches with list
Expected out is
2,cde,UK
4,abc,US
Its not wise to one bey one df[df['country'].str.contains("UK")]