title: formatting JSON output from dataframe
body: <p>I new to coding. I am learning Python from the basics. I am trying to convert a data frame into JSON file using:</p>
  <pre class="lang-py prettyprint-override"><code>json = data.to_json(orient='records')
  </code></pre>
  <p>this is the data frame:</p>
  <pre><code>value  range_lower  range_upper    fact  result  time
  518.67  518.669999  518.670001  518.67        0     1
  518.67  518.669999  518.670001  518.67        0     2
  </code></pre>
  <p>and I am getting the following output:</p>
  <pre><code>[{
      &quot;value  range_lower  range_upper    fact  result  time&quot;: &quot;518.67  518.669999  518.670001  518.67        0     1&quot;
   },
   {&quot;value  range_lower  range_upper    fact  result  time&quot;: &quot;518.67  518.669999  518.670001  518.67        0     2&quot;
   },
  ]
  
  
  but I want it in the following format.
  
  
  
   [{
        value: 518.67
        range_lower: 518.669999
        range_upper: 518.670001
        fact: 518.67
        result: 0
        time: 1 
       },
      
       {
        value: 518.67
        range_lower: 518.669999
        range_upper: 518.670001
        fact: 518.67
        result: 0
        time: 2 
       },
      ]
  </code></pre>