col_names = list(df.columns)
# Import pandas package import pandas as pd # making data frame data = pd.read_csv("nba.csv") # list(data) or list(data.columns)
list(my_dataframe)
df[['C', 'D', 'E']] # or df.loc[:, ['C', 'D', 'E']]