title: How can I turn the following dataframe into a multi-index dataframe?
body: <p>How can I achieve the following:
  I have a table like so</p>
  
  <pre><code>|----------------------|
  | Date | A | B | C | D |
  |------+---+---+---+---|
  | 2000 | 1 | 2 | 5 | 4 |
  |------+---+---+---+---|
  | 2001 | 2 | 2 | 7 | 4 |
  |------+---+---+---+---|
  | 2002 | 3 | 1 | 7 | 7 |
  |------+---+---+---+---|
  | 2003 | 4 | 1 | 5 | 7 |
  |----------------------|
  </code></pre>
  
  <p>and turn it into a multi-index type dataframe:</p>
  
  <pre><code>|------------------------------------|
  | Column Name | Date | Value | C | D |
  |-------------+------+-------+---+---|
  |      A      | 2000 |   1   | 5 | 4 |
  |             |------+-------+---+---|
  |             | 2001 |   2   | 7 | 4 |
  |             |------+-------+---+---|
  |             | 2002 |   3   | 7 | 7 |
  |             |------+-------+---+---|
  |             | 2003 |   4   | 5 | 7 |
  |-------------+------+-------+---+---|
  |      B      | 2000 |   2   | 5 | 4 |
  |             |------+-------+---+---|
  |             | 2001 |   2   | 7 | 4 |
  |             |------+-------+---+---|
  |             | 2002 |   1   | 7 | 7 |
  |             |------+-------+---+---|
  |             | 2003 |   1   | 5 | 7 |
  |------------------------------------|
  
  </code></pre>
  
  <p>I have tried using the Melt function on a dataframe but could not figure out how to achieve this desired look. I think I would also then have to apply a groupby function to the melted dataframe.</p>