pandas select columns and save to otther file code example Example: selecting items in a column of a dataframe df.loc[df['column_name'] == some_value]