how to select columns and create a new data frame in pandas code example Example: create new dataframe from columns pandas new_dataset = dataset[['A','D']]