print the columns contained in the data in python code example
Example 1: list of particular column in pandas dataframe
print(df.columns)
Example 2: print columns pandas
df = pd.DataFrame(exam_data , index=labels)
# print the columns labeled "name" and "score"
print(df[['name', 'score']])