title: How to fill color by groups in histogram using Matplotlib?
body: <p>I know how to do this in R and have provided a code for it below. I want to know how can I do something similar to the below mentioned in Python Matplotlib or using any other library</p>
  
  <pre><code>library(ggplot2)
  ggplot(dia[1:768,], aes(x = Glucose, fill = Outcome)) +
    geom_bar() +
    ggtitle("Glucose") +
    xlab("Glucose") +
    ylab("Total Count") +
    labs(fill = "Outcome")
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/8cTBR.png" alt=""></p>