title: How to reshape dataframe to a [colName, rowName, value] format?
body: <p>I have the following dataframe: </p>
  
  <pre><code>          Akron   Baltimore   Detroit
  Boston    542     2040        367
  Chicago   1670    1215        4636
  Dallas    740     388         491
  </code></pre>
  
  <p>I need to display this dataframe in a [colName, rowName, value] format such as:</p>
  
  <pre><code>Akron     Boston   542
  Akron     Chicago  1670
  Akron     Dallas   740
  Baltimore Boston   2040
  Baltimore Chicago  1215
  Baltimore Dallas   388
  Detroit   Boston   367
  Detroit   Chicago  4636
  Detroit   Dallas   491
  </code></pre>
  
  <p>I tried using <code>df.melt()</code> but this gave me:</p>
  
  <pre><code>0    Akron     542
  1    Akron     1670
  2    Akron     740
  3    Baltimore 2040
  4    Baltimore 1215
  5    Baltimore 388
  6    Detroit   367
  7    Detroit   4636
  8    Detroit   491
  </code></pre>
  
  <p>How can I reshape my data to get the desired result?</p>