How to create a Stacked bar plot?

Hi Team,
I have to plot a stacked bar plot with data values from the below dataframe.
please help me with the code.

image

Regards,
Tony

Hi Tony,

    import matplotlib.pyplot as plt
    df.plot.bar(x="Candidate Name",stacked=True)
    plt.show()

Try the above code to get stacked bar plot for your data-set.
Hope it will work!

1 Like
© Copyright 2013-2019 Analytics Vidhya