title: How do I add multiple bar graphs from a pandas dataframe on one plot in matplotlib?
body: <p>I have two different dataframes:</p>
  <pre><code>df_test1 = pd.DataFrame(
      [['&lt;18', 80841], ['18-24', 334725], ['25-44', 698261], ['45-64', 273087], ['65+', 15035]],
      columns = ['age_group', 'total_arrests']
  )
  </code></pre>
  <p><a href="https://i.stack.imgur.com/goswr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/goswr.png" alt="enter image description here" /></a></p>
  <pre><code>df_test2 = pd.DataFrame(
      [['&lt;18', 33979], ['18-24', 106857], ['25-44', 219324], ['45-64', 80647], ['65+', 4211]],
      columns = ['age_group','total_arrests']
  )
  </code></pre>
  <p><a href="https://i.stack.imgur.com/x03Vw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x03Vw.png" alt="enter image description here" /></a></p>
  <p>I created the following plot using matplotlib:</p>
  <pre><code>fig, ax = plt.subplots()
  
  ax.bar(df_test1.age_group, df_test1.total_arrests, color = 'seagreen')
  ax.bar(df_test2.age_group, df_test2.total_arrests, color = 'lightgreen')
  ax.set_xlabel('Age Group')
  ax.set_ylabel('Number of Arrests')
  ax.set_title('Arrests vs. Felony Arrests by Age Group')
  plt.xticks(rotation=0)
  plt.legend(['All Arressts', 'Felony Arrests'])
  
  ax.yaxis.set_major_formatter(
  ticker.FuncFormatter(lambda y,p: format(int(y), ','))
  )
  
  for i,j in zip(df_test1.age_group, df_test1.total_arrests):
      ax.annotate(format(j, ','), xy=(i,j))
  
  for i,j in zip(df_test2.age_group, df_test2.total_arrests):
      ax.annotate(format(j, ','), xy=(i,j))
  
  plt.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Y5b6B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y5b6B.png" alt="enter image description here" /></a></p>
  <p>I was expecting 2 separate bars, one for each dataframe column, <code>df_test1.total_arrests</code> and <code>df_test2.total_arrests</code> but instead I got a stacked bar chart. How can I get a chart with bars next to one another similar to the chart here <a href="https://stackoverflow.com/questions/53342170/matplotlib-plot-multiple-bars-in-one-graph">Matplotlib plot multiple bars in one graph</a> ? I tried adjusting my code to the one in that example but I couldn't get it.</p>