how to display 2 columns of data in python code example Example: df only take 2 columns df1 = df[['a', 'b']]