title: Python Pandas output rounded DataFrame to dictionary
body: <p>I've got a spreadsheet containing (among other things) rows of people and their education levels, which I've read into a DataFrame. </p>
  
  <p>I am trying to return a dictionary containing relative frequencies which have been rounded to 3 decimal places.</p>
  
  <pre><code>return self.data['education'].value_counts(normalize=True).round(3)
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>BA/BS       0.458
  Some Col    0.250
  PostGrad    0.167
  High Sch    0.125
  Name: education, dtype: float64
  </code></pre>
  
  <p>but</p>
  
  <pre><code>return self.data['education'].value_counts(normalize=True).round(3).to_dict()
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>{u'High Sch': 0.125, u'BA/BS': 0.45800000000000002, u'PostGrad': 0.16700000000000001, u'Some Col': 0.25}
  </code></pre>
  
  <p>I'm just kind of flummoxed by this. Can anyone shed some light on what's going on?</p>