#To select rows whose column value is in an iterable array, which we'll define as array, you can use isin: array = ['yellow', 'green'] df.loc[df['favorite_color'].isin(array)]