title: Not getting 0 index from pandas value_counts()
body: <pre><code>total_val_count = dataset[attr].value_counts()      
      for i in range(len(total_val_count.index)):
          print total_val_count[i]
  </code></pre>
  
  <p>I have written this piece of code which counts occurrences of all distinct values of an attribute in a dataframe. The problem I am facing is that I am unable to access the first value by using index 0. I get a KeyError: 0 error in the first  loop run itself.</p>
  
  <p>The total_val_count contains proper values as shown below:</p>
  
  <p>34    2887<br/>
  4     2708<br/>
  13    2523<br/>
  35    2507<br/>
  33    2407<br/>
  3     2404<br/>
  36    2382<br/>
  26    2378<br/>
  16    2282<br/>
  22    2187<br/>
  21    2141<br/>
  12    2104<br/>
  25    2073<br/>
  5     2052<br/>
  15    2044<br/>
  17    2040<br/>
  14    2027<br/>
  28    1984<br/>
  27    1980<br/>
  23    1979<br/>
  24    1960<br/>
  30    1953<br/>
  29    1936<br/>
  31    1884<br/>
  18    1877<br/>
  7     1858<br/>
  37    1767<br/>
  20    1762<br/>
  11    1740<br/>
  8     1722<br/>
  6     1693<br/>
  32    1692<br/>
  10    1662<br/>
  9     1576<br/>
  19    1308<br/>
  2     1266<br/>
  1      175<br/>
  38      63<br/>
  dtype: int64</p>