title: convert series returned by pandas.Series.value_counts to a dictionary
body: <p>I am trying to use pandas.Series.value_counts to get the frequency of values in a dataframe, so  I go through each column and get values_count , which gives me a series:</p>
  <p>I am struggling to convert this resultant series to a dict:</p>
  <pre><code> groupedData = newData.groupby('class')
  for k, group in groupedData:
      dictClass[k] = {}
      for eachlabel in dataLabels:
          myobj = group[eachlabel].value_counts()
          for eachone in myobj:
              print type(myobj)
              print myobj
  </code></pre>
  <p><img src="https://i.stack.imgur.com/KuYAT.png" alt="The snippet " /></p>
  <p>what I need is a dict :</p>
  <pre><code>{'high': 3909 , 'average': 3688, 'less': '182 , 'veryless' : 62}
  </code></pre>