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