title: Pandas - Convert excel Dataframe to specific dictionary format
body: <p>I am trying to convert an excel file into a dictionary. I understand I can just turn it into a DataFrame and run ".to_dict()" with pandas. However I need it in a specific format . This is how the excel file is formatted below</p>
  
  <hr>
  
  <pre><code>trade   curve   1m    2m     3m    4m
  
  90210   mega    555   222    111   9991
  
  606066  sdsdsd  4545  63232  3232  62626926
  </code></pre>
  
  <hr>
  
  <p>I need the dictionary to look something like this.</p>
  
  <pre><code>{ trade : curve : [1m,2m,3m,4m ] }
  </code></pre>
  
  <p>Essentially, i want to have each trade have a value of a curve ( there might be the same trade, but different curve), and that curve to have an array as its value. I understand I need to look through the initial "to_dict", however im not sure how </p>