title: Convert array of dicts to Pandas dataframe, and convert dataframe back to array of dicts
body: <p>I have the following array of dicts, and I create a Pandas dataframe out of it:</p>
  <pre><code>original_data = [
      {'group': 'group1', 'value': 100}, 
      {'group': 'group1', 'value': 25}, 
      {'group': 'group2', 'value': 77}, 
      {'group': 'group2', 'value': 123}, 
      {'group': 'group3', 'value': 44}
  ]
  
  df = pd.DataFrame(original_data)
  </code></pre>
  <p>This is the resulting dataframe:</p>
  <pre><code>group  value
  0  group1    100
  1  group1     25
  2  group2     77
  3  group2    123
  4  group3     44
  </code></pre>
  <p>The problem is when I try to get the original dict out of the dataset using <code>to_dict()</code>, because I get a completely different object:</p>
  <pre><code>df.to_dict()
  {'group': {0: 'group1', 1: 'group1', 2: 'group2', 3: 'group2', 4: 'group3'}, 'value': {0: 100, 1: 25, 2: 77, 3: 123, 4: 44}}
  </code></pre>
  <p>How can I get the original dict used to construct the dataframe?</p>
  <p>Thanks for your help.</p>