'Making a grouped barchart with matplotlib,

I want to make a bar chart where netwrok is in the x axis and spend is in the y axis, but I also want to group the bar chart of the same network together, even if they have the same month, how can i do this? some of the networks do not have spend one whole month This will be run monthly so separating by month in this one instance will not work, I want to make it as automated as possible

month network spend
9 CNBC 24
9 BBC 10
10 BBC 10
9 Com 10
9 BLOM 10


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source