I have this dataframe:
I am trying to group by ID and sum of the groups and have to plot:
grps = self.df_G_UI.groupby('Module')['#Runs','#Pass'].sum()
for name, grp in grps:
if name == selectedMod:
grp.plot(x=name, y=['#Runs','#Pass'], ax=self.a, kind='bar', color=['Blue', 'Green')
But it is not working.