how to create the dataframe with columns in python code example Example: create new dataframe from columns pandas new_dataset = dataset[['A','D']]