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