how to select a value in a column in pandas code example Example: pandas select by column value df.loc[df['column_name'] == some_value]