title: How to pass each row of a dataFrame to an array
body: <p>How to add a dataframe row in a field array
  Like i have my data frame.</p>
  <pre><code>import pandas as pd
  inp = [{'c1':10, 'c2':100}, {'c1':11,'c2':110}, {'c1':12,'c2':120}]
  df = pd.DataFrame(inp)
  print df
  </code></pre>
  <p>Output:</p>
  <pre><code>   c1   c2
  0  10  100
  1  11  110
  2  12  120
  
  </code></pre>
  <p>So i want to have something like this  :</p>
  <pre><code>{
    &quot;fields&quot;: {
          &quot;c1&quot;: 10,
          &quot;c2&quot;: 100,
     }
  },
  {
    &quot;fields&quot;: {
          &quot;c1&quot;: 11,
          &quot;c2&quot;: 110,
     }
  },
  {
    &quot;fields&quot;: {
          &quot;c1&quot;: 12,
          &quot;c2&quot;: 120,
     }
  }
  </code></pre>
  <p>How can i do it ?</p>