get the value from just below column pandas code example
Example 1: df fetch value
val = d2['col_name'].values[0]
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']