pandas corr table column name behavior
<p>I'm calculating a corr table in pandas,</p>

<pre><code>df = pd.DataFrame(np.random.rand(6, 6))

c = df.corr()
</code></pre>

<p>But when I try to change the name of the columns,</p>

<pre><code>c.columns.name = 'col'
</code></pre>

<p>I get this,</p>

<pre><code>col         0         1         2         3         4         5
col                                                            
0    1.000000  0.051975 -0.171113  0.196975  0.057700 -0.008229
1    0.051975  1.000000 -0.055077 -0.298845 -0.642585 -0.465581
2   -0.171113 -0.055077  1.000000 -0.591092  0.051866  0.584618
3    0.196975 -0.298845 -0.591092  1.000000 -0.327067 -0.059618
4    0.057700 -0.642585  0.051866 -0.327067  1.000000  0.359508
5   -0.008229 -0.465581  0.584618 -0.059618  0.359508  1.000000
</code></pre>

<p>Also,</p>

<pre><code>print c.index.name

col
</code></pre>

<p>Why is this happening?</p>