title: ValueError: shape mismatch: objects cannot be broadcast to a single shape when plotting
body: <p>So I have dataframe like this:</p>
  <p><a href="https://i.stack.imgur.com/7R10E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7R10E.png" alt="enter image description here" /></a></p>
  <p>I want to visualize data on Category vs Read Count column with bar chart. If Category is same then it will automatically sums Read Count values, like 'Megapolitan' Category in index 0 and 2. But what I've got right now is an error. This is my code:</p>
  <pre><code>import pandas as pd
  import matplotlib.pyplot as plt
  import numpy as np
  from PIL import Image
  import pylab as pl
  from wordcloud import WordCloud, STOPWORDS
  
  dataset = pd.read_csv('kompas.csv')
  dataset.head()
  
  dataset[[&quot;Total Comment&quot;, &quot;Read Count&quot;]] = dataset[[&quot;Total Comment&quot;, &quot;Read Count&quot;]].astype('int')
  
  fig, ax = plt.subplots(figsize=(10,15))
  
  data = dataset['Category'].value_counts()
  data2 = dataset['Read Count'].value_counts() 
  
  category = data.values 
  readcount = data2.values
  
  ax.barh(category, readcount) 
  ax.set_title('Total Amount of Category on Most Popular News') 
  ax.set_xlabel('Total') 
  ax.set_ylabel('Category')
  </code></pre>
  <p>And this is the error:</p>
  <pre><code>ValueError                                Traceback (most recent call last)
  &lt;ipython-input-24-b28678940ca9&gt; in &lt;module&gt;()
        7 readcount = data2.values
        8 # create bar chart
  ----&gt; 9 ax.barh(category, readcount)
       10 # set title and labels
       11 ax.set_title('Total Amount of Category on Most Popular News')
  
  4 frames
  &lt;__array_function__ internals&gt; in broadcast_arrays(*args, **kwargs)
  
  /usr/local/lib/python3.6/dist-packages/numpy/lib/stride_tricks.py in _broadcast_shape(*args)
      189     # use the old-iterator because np.nditer does not handle size 0 arrays
      190     # consistently
  --&gt; 191     b = np.broadcast(*args[:32])
      192     # unfortunately, it cannot handle 32 or more arguments directly
      193     for pos in range(32, len(args), 31):
  
  ValueError: shape mismatch: objects cannot be broadcast to a single shape
  </code></pre>
  <p>Any help would be appreciated.</p>