Plotting percentage in seaborn bar plot
Plotting percentage in seaborn bar plot Question: For a dataframe import pandas as pd df=pd.DataFrame({‘group’:list(“AADABCBCCCD”),’Values’:[1,0,1,0,1,0,0,1,0,1,0]}) I am trying to plot a barplot showing percentage of times A, B, C, D takes zero (or one). I have a round about way which works but I am thinking there has to be more straight forward way tempdf=df.groupby([‘group’,’Values’]).Values.count().unstack().fillna(0) …