For selecting only specific columns out of multiple columns for a given value in Pandas:
select col_name1, col_name2 from table where column_name = some_value. Options loc:
df.loc[df['column_name'] == some_value][[col_name1some_value, [col_name1, col_name2]] or query:
df.query['column_name'query('column_name == 'some_value'][[col_name1some_value')[[col_name1, col_name2]]