pandas filter on two column values code example
Example: how to filter pandas dataframe column with multiple values
movies[movies.duration >= 200]
movies[(movies.duration >= 200) & (movies.genre == 'Drama')]
movies[(movies.duration >= 200) | (movies.genre == 'Drama')]
(movies.duration >= 200) | (movies.genre == 'Drama')
(movies.duration >= 200) & (movies.genre == 'Drama')
movies[(movies.genre == 'Crime') | (movies.genre == 'Drama') | (movies.genre == 'Action')]
filter_list = ['Crime', 'Drama', 'Action']
movies[movies.genre.isin(filter_list)]