title: Pandas DataFrame Bar Plot - Plot Bars Different Colors From Specific Colormap
body: <p>How do you plot the bars of a bar plot different colors <strong>only</strong> using the pandas dataframe <code>plot</code> method?</p>
  
  <p>If I have this DataFrame:</p>
  
  <pre><code>df = pd.DataFrame({'count': {0: 3372, 1: 68855, 2: 17948, 3: 708, 4: 9117}}).reset_index()
  
     index  count
  0      0   3372
  1      1  68855
  2      2  17948
  3      3    708
  4      4   9117
  </code></pre>
  
  <p>What <code>df.plot()</code> arguments do I need to set so each bar in the plot:</p>
  
  <ol>
  <li>Uses the 'Paired' colormap</li>
  <li>Plots each bar a different color </li>
  </ol>
  
  <p>What I am attempting:</p>
  
  <pre><code>df.plot(x='index', y='count', kind='bar', label='index', colormap='Paired', use_index=False)
  </code></pre>
  
  <p>The result:</p>
  
  <p><a href="https://i.stack.imgur.com/DANzZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DANzZ.png" alt="not different colors"></a></p>
  
  <p>What I already know (yes, this works, but again, my <strong>purpose</strong> is to figure out how to do this with <code>df.plot</code> ONLY. Surely it must be possible?):</p>
  
  <pre><code>def f(df):
    groups = df.groupby('index')
  
    for name,group in groups:
      plt.bar(name, group['count'], label=name, align='center')
  
    plt.legend()
    plt.show()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/c8U0i.png" rel="noreferrer"><img src="https://i.stack.imgur.com/c8U0i.png" alt="end result but used for loop"></a></p>