print a column value when we give another row value pandas 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']