select multiple column pandas code example Example 1: df only take 2 columns df1 = df[['a', 'b']] Example 2: select multi columns pandas df1 = df[['a', 'b']]