get the value from a dataframe column code example
Example 1: pandas select by column value
df.loc[df['column_name'] == some_value]
Example 2: how to get value from dataframe pandas
sub_df.iloc[0]
df.loc[df['column_name'] == some_value]
sub_df.iloc[0]