title: creating dataframe on the basis of R-squared value
body: <p>I have a dataframe that looks like below,</p>
  
  <p>df1 = </p>
  
  <pre><code>Index   bins  one         two         three       four
  a       1     0.760207    0.313230    1.257121    3.777180
  b       2     0.920607    0.350345    -0.424963   0.032379
  c       3     -0.975032   0.580298    1.819454    -0.807784
  d       4     -0.886256   0.656349    0.306178    1.172622
  e       5     0.512182    0.362790    1.066892    0.250835
  </code></pre>
  
  <p>I want to get a dataframe that simply gives the r-squared value of columns one, two, three, four with column bins. So that the dataframe that I want looks like below.</p>
  
  <p>df2 = </p>
  
  <pre><code>columns     r-square_with_bins
  one         0.25
  two         0.7
  three       0.35
  four        0.01
  five        0.112
  </code></pre>
  
  <p>The r-squared values I have written here are not exact and for understanding the dataframe structure only.
  And in the real dataset, there are more than 200 columns with the first column being 'bins'.
  But the problem is the same as this one.</p>
  
  <p>need help.</p>