Pandas > Calculate correlation

Name
Code
Output
dataframe = pandas.DataFrame(numpy.random.randint(0,100,size=(5, 3)), columns=['C1','C2','C3'])
print ("dataframe")
print (dataframe)
print ("dataframe correlation")
print (dataframe.corr())
dataframe
   C1  C2  C3
0  82  71  74
1  62  12   8
2  97  86  26
3  26  98  48
4   5  97  29
dataframe correlation
          C1        C2        C3
C1  1.000000 -0.339904  0.107885
C2 -0.339904  1.000000  0.456666
C3  0.107885  0.456666  1.000000