In pandas, you can select multiple columns by their name, but the column name gets stored as a list of the list that means a dictionary. It means you should use [ [ ] ] to pass the selected name of columns. This method df[['a','b']] produces a copy.
For example:
df1 = df[['a','b']]
You can also use ‘.iloc’ method to access the list by column name. It is efficient to access the column by the index number of a column name.
For example:
df1 = df.iloc[:,0:2]
Hope this answer helps.