title: Getting a dictionary with no column info
body: <p>I had a pandas dataframe and wanted to turn it into a dictionary that I could search. 
  The dataframe looks like this:</p>
  
  <pre><code>           1
     0
     ko1    836
     ko2    786
     ko3    898
  </code></pre>
  
  <p>There were no column names so the headers were automatically set as 1 and 0 and I made column 0 the index. When I made it into a dictionary using</p>
  
  <pre><code>y = x.to_dict(orient="index")
  </code></pre>
  
  <p>The dictionary output looked like this</p>
  
  <pre><code>{ko1:{1:836},ko2:{1:786},ko3:{1:898}}
  </code></pre>
  
  <p>How could I make it into a dicrionary like this:</p>
  
  <pre><code>{ko1:836,ko2:786,ko3:898}
  </code></pre>