title: Anaconda - Display table output from CSV
body: <p>I am trying to produce output from .csv file as a table with column headers. I am trying to display as table with frequencies calculated. so far i can calculate frequencies with this code:</p>
  
  <pre><code>import pandas
  d = pandas.read_csv('gapminder.csv', low_memory=False)
  d['urbanrate'] = d['urbanrate'].convert_objects(convert_numeric=True)
  
  print ('Count Urban rate')
  c = d.groupby('urbanrate').size()
  print (c)
  
  print ('Urban rate percentage')
  f = d.groupby('urbanrate').size() * 100/len(d)
  print (f)
  </code></pre>
  
  <p>and the output is like:</p>
  
  <pre><code>Count Urban rate
  urban rate
  10.40     1
  12.54     1
  12.98     1
  </code></pre>
  
  <p>But i would like to have have columns like:</p>
  
  <pre><code> Rate   Count
   10.40      1
   ..         ..
  </code></pre>
  
  <p>Thanks</p>