//To select rows whose column value equals a scalar, some_value, use ==:
df.loc[df['A'] == 'foo']
//To select rows whose column value is in an iterable, some_values, use isin:
df.loc[df['B'].isin(['one','three'])]
//Combine multiple conditions with "&" :
df.loc[(df['column_name'] >= A) & (df['column_name'] <= B)]
select_color = df.loc[df['Color'] == 'Green']
df.iloc[1] # replace index integer with specific row number
#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)]
#To select rows whose column value equals a scalar, some_value, use ==:df.loc[df['favorite_color'] == 'yellow']
#To select rows whose column value equals a scalar, some_value, use ==:df.loc[df['favorite_color'] == 'yellow']