how to show columns in pandas by 2 columns code example Example: df only take 2 columns df1 = df[['a', 'b']]