title: Rotate pandas DataFrame 90 degrees
body: <p>Basically I want to rotate a pandas DataFrame by 90 degrees (clockwise), such that if it were</p>
  
  <pre><code>df:
      A B C D
    0 5 3 6 7
    1 6 3 5 2
  </code></pre>
  
  <p>it would turn into</p>
  
  <pre><code>df:
     6 5 A
     3 3 B
     5 6 C
     2 7 D
  </code></pre>
  
  <p>Is there some way to do this with pivots, or some other way? Thanks!</p>