title: cannot perform reduce with flexible type plt.hist
body: <p>I have a dataset with 1000s of elements and their respective frquencies. i need to plot a histogram of the top 10 occurring elements.<br>
  i did:  </p>
  
  <pre><code>  top_words = Counter(my_data).most_common()  
    top_words_10 = top_words[:10]  
    plt.hist(top_words_10,label='True')    
  </code></pre>
  
  <p>and got this error :  </p>
  
  <pre><code>TypeError                                   
    Traceback (most recent call last) 
  &lt;ipython-input-29-ff974b3a2354&gt; in &lt;module&gt;()  
        5  print top_words[:10]  
        6   
  ----&gt; 7 plt.hist(top_words_10)    
  C:\Anaconda\lib\site-packages\numpy\core\_methods.pyc in _amin(a, axis, out, keepdims)  
       12 def _amin(a, axis=None, out=None, keepdims=False):  
       13     return um.minimum.reduce(a, axis=axis,  
  ---&gt; 14                             out=out, keepdims=keepdims)  
       15   
       16 def _sum(a, axis=None, dtype=None, out=None, keepdims=False):  
  
  
  TypeError: cannot perform reduce with flexible type
  </code></pre>
  
  <p>Any idea?? my data looks like this :  </p>
  
  <pre><code>[(' whitefield', 65299), (' bellandur', 57061), (' kundalahalli', 51769), (' marathahalli', 50639), (' electronic city', 44041), (' sarjapur road junction', 34164), (' indiranagar 2nd stage', 32459), (' malleswaram', 32171), (' yelahanka main road', 28901), (' domlur', 28869)]
  </code></pre>