title: How to make a bar chart with three columns from three sets of dictionaries with a different number and order of indices?
body: <p>I am trying to create a three column bar chart from some of the Counter dictionaries I generated but can't get it to work.</p>
  
  <p>I was able to generate a bar chart of one of the Counter dictionaries but not all three with a column dictionary at each index. </p>
  
  <pre><code>f_cond_count=dict(Counter(f_cond_plot))
  f_pow_count=dict(Counter(f_pow_plot))
  f_mom_count=dict(Counter(f_mom_plot))
  
  
  print("cond",f_cond_count)
  print("pow",f_pow_count)
  print("mom",f_mom_count)
  
  df = pd.DataFrame.from_dict((f_cond_count, f_pow_count, f_mom_count), 'index')
  df.plot.bar()
  plt.show()
  </code></pre>
  
  <p>This line of code will print the following:</p>
  
  <p>cond {0.1: 33, 0.2: 36, 0.30000000000000004: 36, 0.4: 36, 0.5: 39, 0.6: 39, 0.7000000000000001: 39, 0.8: 39, 0.9: 39}</p>
  
  <p>pow {0.7000000000000001: 54, 0.8: 81, 0.9: 201}</p>
  
  <p>mom {0.4: 94, 0.5: 27, 0.6: 27, 0.7000000000000001: 18, 0.8: 9, 0.9: 9, 0.30000000000000004: 85, 0.2: 67}</p>
  
  <p>And I can get one dictionary to work if I use the following:</p>
  
  <pre><code>df = pd.DataFrame.from_dict(f_cond_count, 'index')
  df.plot.bar()
  plt.show()
  </code></pre>
  
  <p>Where I get a bar chart with [0.1, 0.2, 0.30000000004, 0.4 etc.] on the x-axis and the numbers [33, 36, 36, 36 etc] on the y-axis.</p>
  
  <p>I get the error:"'tuple' object has no attribute 'values'" when I try to do all three and Im not sure why. I'm also not sure if it will work since the dictionaries are different sizes and some don't have entries for certain indices. I am trying to create something similar to the solution posted in this thread <a href="https://stackoverflow.com/questions/42128467/matplotlib-plot-multiple-columns-of-pandas-data-frame-on-the-bar-chart">matplotlib: plot multiple columns of pandas data frame on the bar chart</a></p>