Skip to content Skip to sidebar Skip to footer

Bar Plotting Grouped Pandas

I have a question regarding plotting grouped DataFrame data. The data looks like: data = index taste food 0 good cheese 1 bad tomato 2 worse

Solution 1:

I seem to have found an example:

making a stacked barchart in pandas

Sufficient doing:

df_3 = df_2.unstack()
df_3.plot(kind='bar',stacked=True, rot=1)

Post a Comment for "Bar Plotting Grouped Pandas"