pandas search for value in column code example
Example 1: get value of a pd for specific values in column
df.loc[df['column_name'].isin(some_values)]
Example 2: selecting a specific value and corrersponding value in df python
#To select rows whose column value equals a scalar, some_value, use ==:df.loc[df['favorite_color'] == 'yellow']