input_file = "C:....consumer_complaints.csv" dataset = pd.read_csv(input_file) df = pd.DataFrame(dataset) new_dataframe = df.filter(['col_name_1', 'col_name_2'])