title: Convert dataframe to dictionary
body: <p>I intend to get a dictionary with column name as key from a dataframe.</p>
  
  <p>Suppose I have a dataframe:</p>
  
  <pre><code>    a    b
   0  ac   dc
   1  ddd  fdf
  </code></pre>
  
  <p>I want the output as:</p>
  
  <pre><code>{a : ac, b : dc}
  </code></pre>
  
  <p>I want it to be done row by row. Any sort of help would be greatly appreciated.
  Here I want the column name as the key in the resulting dictionary.</p>