My dataset
Code I have tried:
df = df.loc[df['column name']=='here i want to pass list']
You can do it like this:
searchfor = ['Asia', 'AP', 'EU'] df = df[df['Region'].str.contains('|'.join(searchfor))]
1.4m articles
1.4m replys
5 comments
57.0k users