Help please,
A, B and C are columns
X , Y , Z, Q , R are my index values
I want to make a stacked bar plot in python (matplot lib) which calculates the normalized - percentage values for each OUT_CAUSE per market and represents it in the chart.
OUT_CAUSE A B C
MARKET
X 12.0 11.0 4.0
Y 9.0 12.0 3.0
Z 16.0 40.0 1.0
Q 23.0 19.0 3.0
R 17.0 15.0 2.0
X axis of the plot should be MARKET Y axis of the plot should be % contribution of OUT_CAUSE for each market.
Sum of the % should be equal to 100
I was using this for representation of direct numbers
df(kind='bar', stacked=True ,figsize=(8, 8));