title: How can I transform a DataFrame so that the headers become column values?
body: <p>I have Pandas DataFrame in this form:</p>
  <p><a href="https://i.stack.imgur.com/Frudq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Frudq.png" alt="Data Format 1" /></a></p>
  <p>How can I transform this into a new DataFrame with this form:</p>
  <p><a href="https://i.stack.imgur.com/gJKZ8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gJKZ8.png" alt="Data Format 2" /></a></p>
  <p>I am beginning to use Seaborn and Plotly for plotting, and it seems like they prefer data to be formatted in the second way.</p>