Pandas > View dataframe columns

Name
Code
Output
dataframe = pandas.DataFrame(numpy.random.randint(0,100,size=(5, 4)), columns=['C1','C2','C3','C4'])
print ("dataframe")
print (dataframe)
print ("dataframe columns")
print (dataframe.columns)
dataframe
   C1  C2  C3  C4
0  54  50  37  74
1  46  76   8  96
2  43  92  25  69
3  55  64  58   5
4  58  79   6  39
dataframe columns
Index(['C1', 'C3', 'C3', 'C4'], dtype='object')