pandas select columns where value is true code example Example: pandas select columns where value is true df.loc[df['column_name'] == some_value]