title: Trying to make a barchart, bar() missing 1 required positional argument: 'height'
body: <p>I am trying to make a barchart, my code is</p>
  
  <pre><code>data = np.genfromtxt("ca1_data/distance.csv",
                 delimiter=',',skip_header=1,
                 dtype=[('Year','i4'),('Mode','U50'),('Distance','U10')],
                 missing_values=['na','-'],filling_values=[0])
  years = np.arange(5)
  scores = [(data[(data['Mode']=='MRT') &amp; (data['Year']&gt;=2010)]['Distance']), 
            (data[(data['Mode']=='Bus') &amp; (data['Year']&gt;=2010)]['Distance'])]
  labels = np.arange(2010,2015)
  print(scores)
  fig = plt.figure(figsize=(20,10))
  ax1 = fig.add_subplot(111)
  ax1.set_xticklabels(labels, fontsize=10)
  plt.title(title)
  plt.xlabel('Years')
  plt.ylabel('Distance')
  bp_dict = plt.bar(scores,10,labels=labels)
  plt.show()
  </code></pre>
  
  <p>the problem is I got the error</p>
  
  <pre><code>bar() missing 1 required positional argument: 'height'
  </code></pre>
  
  <p>So I added it manually</p>
  
  <pre><code>bp_dict = plt.bar(scores,10,labels=labels)
  </code></pre>
  
  <p>However, I got another error</p>
  
  <pre><code>TypeError: unhashable type: 'numpy.ndarray'
  </code></pre>
  
  <p>Thanks in advance!</p>
  
  <p>Update:
  This is what the ouput of scores is</p>
  
  <pre><code>[array(['10.3', '10', '9.6', '9.5', '9.2'], dtype='&lt;U10'), array(['4.8', '4.5', '4.4', '4.3', '4.3'], dtype='&lt;U10')]
  </code></pre>
  
  <p>Update2:
  I updated the code </p>
  
  <pre><code>scores = list(map(float, np.array(scores).flatten()))
  </code></pre>
  
  <p>I got new error after putting this</p>
  
  <pre><code>AttributeError: Unknown property labels
  </code></pre>