pandas list all columns code example
Example 1: see all columns pandas
pd.set_option('max_columns', None)
Example 2: pd dataframe get column names
lst = data.columns.values # data is dataframe
Example 3: print columns pandas
df = pd.DataFrame(exam_data , index=labels)
# print the columns labeled "name" and "score"
print(df[['name', 'score']])
Example 4: show all columns pandas
pd.set_option('display.max_columns', None)movies.head()